Comment by torginus

Comment by torginus 4 hours ago

1 reply

What do you mean by non-issue? You just accept passing it around in every function, and now passing around another param for io as well?

Or do you create a context struct and pass that around?

messe 4 hours ago

> You just accept passing it around in every function

In every function that needs to allocate yes. Sometimes, it'll be stored in a struct, but that's rare. And not every function needs to allocate.

> and now passing around another param for io as well?

Yes. Not everything needs to do Io.

You should try reading some idiomatic Zig code. Ghostty would be an example (as would much of the Zig standard library).