Will std.Io.{Reader|Writer} be renamed to std.Io.{Source|Sink}?

I was re-watching Andrew’s presentation on the new Io interface, and I noticed he mentioned that it might make more sense to take inspiration from audio applications and rename Reader and Writer to Source and Sink.

I just wanted know, does anyone know if this is still something that’s planned?

3 Likes

There was a discussion about this a little while ago: What happened to the proposed source/sink semantics in IO? - #7 by kristoff

The crux of it is: while Source/Sink is more accurate in some cases, and Reader/Writer can cause some confusion, it is more generally accepted to use Reader/Writer. They are the default. It hasn’t been outright rejected, but it seems like this is the current way things are done and the compiler devs will need a good reason to do the actual switch.

4 Likes

Help is more for practical zig issues, help with actual code, at least in practice.
Explain seems better suited for this discussion

1 Like