Re:Inventing Monads
by lmm on Saturday August 29, 2020 @06:54PM
(#24319994)
You need a special language feature to "throw an error", which can break your reasoning about code. A seemingly harmless refactor like swapping two lines might completely change your behaviour because one of those lines actually threw an error. It becomes very difficult to do things like manage a resource properly (ensuring it's always released), to the point that you probably end up adding more special language features to handle that.
[ Parent
| on HN ]
There are no comments on this comment yet.