Re:Rust RAII is better than the Haskell bracket pattern
by kccqzy on Tuesday October 09, 2018 @04:36AM
(#18174223)
You misunderstood me. I'm explaining why simply adopting RAII is inappropriate in Haskell, even though the author thinks it's a better approach. I've edited my comment to make this clearer.
[ Parent
| on HN ]
Re:Rust RAII is better than the Haskell bracket pattern
by thesz on Tuesday October 09, 2018 @07:03AM
(#18174875)
Author of the article discusses a library - two approaches of different (parts of) libraries.
It is quite possible you may need to have RAII somewhere in Haskell code and that's where things like parametrized monads are good: http://blog.sigfpe.com/2009/02/beyond-monads.html
It is a library and I keep saying that what is usually programming language feature is just a library in Haskell.