>> Would it make sense to standardize more exception/error types, for example 
>> to add a MissingParameterError in ES.next?
> 
> No proposal yet for demanding actual parameter count match formal, so this 
> would not be used.

Right. I would use it when I do my own checking. This idea is mainly motivated 
by Java having several predefined exceptions with descriptive names that are 
easy to reuse.

With JavaScript, is throwing a string considered bad style (now or in the 
future)? That is, is throwing a new Error(msg) better than throwing msg 
directly?

Axel

-- 
Dr. Axel Rauschmayer

[email protected]
twitter.com/rauschma

home: rauschma.de
blog: 2ality.com



_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to