Re: EURXSC -- Euphoria Routine Exit Status Code idea
- Posted by Aveu Sep 24, 2012
- 1097 views
If anything, we'd want something modern, like exceptions..
I would be fine with "something modern" in principal but I was thinking in terms of a generic solution that would not add any unnecessary processing overhead to the main language engine. I suspect only a small fraction of the existing library routines would even want to take advantage of this feature.
If you want to see if the sequence contains the object, why not just search for it before adding it, rather than checking an error code from an unrelated routine?
Perhaps because I really don't want to "see if the sequence contains the object".
I want to see if a particular library routine (add_item was just an example) completed as expected without having to build custom test routines for quasi-core routines. This is the exact same logic as having the exit status code for abort(), but at the internal routine level.