←back to thread

498 points azhenley | 1 comments | | HN request time: 0.212s | source
Show context
y0ned4 ◴[] No.45769960[source]
When I started programming in Haskell, where all variables are immutable, I felt like I was in a straitjacket

Then, suddenly, the enlightenment

replies(5): >>45770377 #>>45770438 #>>45770896 #>>45771052 #>>45771863 #
1. chuckadams ◴[] No.45771863[source]
The lovely thing with Haskell is you have the ST monad that lets you have as many mutable variables as you want, as long as they stay within ST.