News for hackers. Stuff that matters.
Re:Where Everything Went Wrong: Error Handling and Error Mes... by carapace on Friday February 19, 2021 @01:32PM (#26196278)
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...

Re:Where Everything Went Wrong: Error Handling and Error Mes... by heja2009 on Friday February 19, 2021 @04:16PM (#26198128)
that'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.