▲ 8 r/odinlang
Could context.io solve function coloring without signature changes?
It might be worth considering an approach in Odin similar to Zig's std.Io — particularly because Odin already has `context`. With something like `context.io`, this could potentially be done without requiring any signature changes in libraries.
I don't have deep experience with nbio, but it seems to me that unless you adopt a model like Go's goroutines or Zig's std.Io, the function coloring problem is essentially unavoidable. Given that Odin already has `context`, I'd argue it's actually in a better position than Zig to adopt and apply this kind of approach.
u/_anarcher_ — 4 days ago