Re:Why Static Languages Suffer from Complexity (2022)
by voidhorse on Wednesday August 09, 2023 @06:10PM
(#37069108)
Sure, it was just an off the cuff example. And while I agree that monads are not horrible by any means I think you are oversimplifying a bit. Monad transformers, the mtl library, ect. all exist after all... Even if using monads is relatively painless I wouldn't say that it's easier than using a language that allows you to freely execute side effects wherever for programs that are highly interactive.
[ Parent
| on HN ]
Re:Why Static Languages Suffer from Complexity (2022)
by xedrac on Thursday August 10, 2023 @01:13AM
(#37072221)
Haskell does let you freely execute side effects. It just asks you to label any function that does so. People get tripped up by it because it's different, but in practice, it's absolutely trivial.
Re:Why Static Languages Suffer from Complexity (2022)
by consilient on Thursday August 10, 2023 @01:59AM
(#37072469)
`IO` is all you need if you want to freely execute side effects wherever. `mtl` and friends are for when you want to restrict which effects are available where.