Comment by idle_zealot

Comment by idle_zealot 13 hours ago

1 reply

Passing io into things over and over seems annoying. Like, you can use io to get a File instance, then you need to pass io into its methods to read/write it? When would you ever make a File with one io implementation and want to manipulate it with another?

ivanjermakov 13 hours ago

No one can stop you from defining a global Io value, similar to global allocators. Definitely a bad idea for library code though.