Re: error codes in returns
- Posted by DerekParnell (admin) Sep 11, 2009
- 1215 views
Other programming languages offer exceptions for these use cases. In Eu you have to use some workaround: Setting an errno-like variable or return error codes that you need to pass up the call stack yourself. IMHO both workarounds suck.
- Not all programming languages have implemented exceptions.
- We plan to have exceptions in Euphoria.
As usual, Eu's simplicity is fiction: Eu itself is simpler than other langauges because it lacks language features, but code written in Eu is more complex than necessary due to the missing language features. The day Eu contains the missing stuff its simplicity is gone too. That's not a bad thing, but the developers could acknowledge this.
As usual, Critic's generalizations are fiction.
We have put a lot of effort in to ensuring that Euphoria is simple to use, by putting in a lot of under-the-hood complexity. One of our goals is to uphold the original design philosophy of rapid development.
The journey has not ended yet. There are still further simplifications that will be made, and this will involve making the internals more complex.