Re: Try/Catch
- Posted by dcuny Jan 10, 2015
- 5464 views
Shian_Lee said...
Handling exceptions can be done in a more high-level way, which is suitable to the overall usage of Euphoria.
I'm curious. How do you suggest these exceptions he handled?
I'm assuming that anything that ends up halting Euphoria is an exception.
I can see routines returning error codes, and in many cases they already do.
But a much more typical case is an indexing error, such as:
x = s[length(s)+1]
What innovation would you suggest for this? Because of the way indexing and slicing are done, I don't see how and error code can be returned, and from what.
- David