4 ms·
To be fair, throw is GOTO. Catch() is COMEFROM :).
by simiones 6y ago
To be fair, throw is GOTO. Catch() is COMEFROM :).
- Ace17 6y agoTechnically, `throw` is `goto somewhere`.
- marcosdumay 6y agoI guess gettout wasn't well accepted by the committees of the time.
- carapace 6y agoAh, my peeps! I love you guys. enriquto when you talk about "a language with no error handling nor exceptions" it reminds me of a crazy idea i was toying with: what if you made all "exceptions" require handlers, e.g. what if every divide had to be accompanied by code to deal with divide-by-zero? In other words, DIV(X, Y, Foo) would be (X/Y if Y != 0 else Foo()) And so on...
- heja2009 6y agothat's the way some embedded control systems are designed. with some (many) errors (can't read/write) being fatal and shutting down the system after an alarm is sent.