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

In Haskell, mutable APIs are available but this is surfaced in the types. The idea is not so much that you shouldn’t have mutability, as that it shouldn’t look the same (and be treated by the compiler the same) as immutability.

Maybe Haskell goes too far in this regard, but Rust is in line with the same way of thinking, because mutability is surfaced and checked at type level.



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

Search: