/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
John Carmack on mutable variables
(twitter.com)
498 points
azhenley
| 1 comments |
31 Oct 25 02:34 UTC
|
HN request time: 0.212s
|
source
Show context
y0ned4
◴[
31 Oct 25 09:22 UTC
]
No.
45769960
[source]
▶
>>45767725 (OP)
#
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
◴[
31 Oct 25 13:39 UTC
]
No.
45771863
[source]
▶
>>45769960
#
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.
ID:
GO
↑