Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?




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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: