3 ms·
Ah, 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
by carapace 6y ago
Ah, 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.