4 ms·
With Zig I/O you can call i/o functions from non-i/o functions and non-i/o functions from i/o functions. In the analogy of “What color is your function”, you c
by jmull 1y ago
With Zig I/O you can call i/o functions from non-i/o functions and non-i/o functions from i/o functions.
In the analogy of “What color is your function”, you can call blue functions from red functions and red functions from blue functions.
The pernicious viral nature of function coloring doesn’t apply.
- ivanjermakov 1y ago> With Zig I/O you can call i/o functions from non-i/o functions and non-i/o functions from i/o functions Yes, but you would either create a new std.Io just for that, or use a global/semi-global std.Io from somwhere else
- jmull 1y agoYes… like every other argument one function provides to another that it doesn’t pass directly through from one of its own arguments. The function color analogy captures a pernicious viral dynamic with async where it allows only one-way composition. That just doesn’t exist with zig i/o.