4 ms·
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 con
by torginus 11mo ago
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 11mo 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).