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

I agree that hiding coloring entirely is really a trap. I want to know when some IO work runs because it means potential exceptions unknown with unpredictable latency in my program.

As a design choice of OCaml’s eio - an async runtime, you must pass around a dependency to all your IO functions. With the “net” object passed visible in my function type signature, I can tell some network work may occur. The first benefit is we get synchronous Go-like code.



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

Search: