Re: Try/Catch
- Posted by Shian_Lee Jan 05, 2015
- 6048 views
I really don't follow this conversation.
Exception handling is similar to 'goto', just hundred times worse.
Strangely, I don't remember 'exception handling', nor 'goto', existing in PLC programming language (PLC=Programmable Logic Controller). Maybe it's because PLC programming has to deal directly with human lives, while computer programming do not.
I wouldn't put someone's life in the hands of 'exception handler' nor 'goto'.
Exceptions must be treated as error codes returned from routines. Division-by-Zero or Out-of-Bound will occur with or without the presence of Try/Catch in Euphoria, since it's a programmer's fault - not a machine fault.