Re: Try/Catch
- Posted by jimcbrown (admin) Jan 11, 2015
- 5232 views
eukat said...
Choose a soft and gracefull fail, and it will do what the filesystem does: extend the sequence and return a {} or a null.
I have asked for this for years
I have some reservations about doing it this way. However, in the interests of furthering the discussion, I've implemented this (with the integer value of 0 representing null) in the equal branch: http://scm.openeuphoria.org/hg/euphoria/rev/1d9b443bd04b
Edit: Actually, just the two interpreters (C and Eu backends). I haven't tried to fix up the translator, since as mattlewis pointed out it would be a bit harder (since we're not even always doing the necessary bounds checks in the first place).