Yochem van Rosmalen

Results 61 comments of Yochem van Rosmalen

Oops, seems that wrapping the custom errors in `IError()` solves the problem 🙊

> While V could use some of the pathlib stuff from Python, many of these routines are already in V, just not in a pathlib module. > > > >...

Thanks! I will indeed use that format.

I have the following code for the `inode` method: ```v pub fn (p Path) inode() os.FileMode { return os.inode(p.str()) } ``` But `v` complains that I can't use `os.FileMode` as...

> Make it public by adding a `pub` prefix to the struct declaration. Inside the `os` module right? I thought there would be a good reason for them to keep...

Might be related: there is currently no way to _see_ the default show rule set by typst. That would be very useful to tweak minor parts of an element.

I would also like to add that it is not only useful for the default set by Typst, but might also be useful to reset something to the default of...

I like `#show heading: it => it.default()`, but default might be a bit unclear: does it reset `show` rules, `set` rules, or both?

> @yochem, you can simplify #show heading: it => ieeeHeading(it) to #show heading: ieeeHeading (in case you didn't know this). Thanks! I was not entirely sure when writing the comment...