Y
Hacker News
new
|
ask
|
show
|
jobs
by
xigoi
1451 days ago
You can have support for monads without using them for IO.
1 comments
Iceland_jack
1451 days ago
Separating IO is kind of the killer feature, something like `rand()` is not an int unless you're reading dilbert[1] or xkcd[2]. Basic equations break down in the face of an Int-valued IO-action being conflated with an Int
[1]
https://dilbert.com/search_results?terms=Random+Number+Gener...
[2]
https://xkcd.com/221/
link
[1] https://dilbert.com/search_results?terms=Random+Number+Gener... [2] https://xkcd.com/221/