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

I keep wondering what it would be like to work in a language that gave some compiler support for ensuring that functions remain mostly pure. Like, perhaps mutating variables that are visible outside the function or getting input from external sources are disallowed, but logging and writing debug output are still permitted.


Haskell is like that with System.IO.Unsafe and Debug.Trace.




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

Search: