Hot take: Exceptions are a fine error-handling mechanism.
-
-
BTW, the “zero-cost exceptions” model is not universally loved among PL implementers. In fact, it’s pretty much a C++ism. JVMs in particular have traditionally never had zero-cost exceptions.
-
This famously got GCJ into trouble, because Eclipse would take something like a minute to start up, as its startup path threw thousands of exceptions during normal execution. GCJ had to switch to some other method.
- 5 more replies
New conversation -
-
-
but can you do PL design abstractly without considering the problem domain?
-
I think so, in this case, because you could always implement exceptions as a whole-program transform to a monadic style. (And in fact this is what most ML implementations do, I think…)
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.