Conditional catch clause

Brendan Eich brendan at mozilla.com
Wed Dec 19 19:56:58 PST 2012


Claude Pache wrote:
> The iterator is asked for the next value, but there is none, so it 
> throws (but it is not an error)

Good point -- not all exceptions are errors, but all errors are 
exceptions (or should be -- ignore the errno-like nonsense in various 
legacy APIs!).

/be


More information about the es-discuss mailing list