On 7 juin 2013, at 10:58, Alexandre Morgaut wrote:
>
> 3) Another approach could be to let the parse() and stringify() methods 
> accept an additional errorCallback parameter
>
> It could be nice but it would force the developer to set values for the other 
> optional parameters first even if he doesn't need them
>

Well, of course, the errorCallback might be set via something like JSON.onerror 
but a specific callback may easily overwrite a previously defined global one 
and integrating the whole W3C EventTarget interface in ECMAScript might not be 
easily acceptable




Alexandre Morgaut
Wakanda Community Manager

4D SAS
60, rue d'Alsace
92110 Clichy
France

Standard : +33 1 40 87 92 00
Email :    [email protected]
Web :      www.4D.com


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

Reply via email to