Le 27/09/2012 18:41, Allen Wirfs-Brock a écrit :
> On Sep 27, 2012, at 9:31 AM, Andrea Giammarchi wrote:
>> it would be stupid to code like that but it makes sense since it has 
>> basically always been like that :)
> A big part of of my job is specifying what stupid code does. 
I'm begging, please throw early errors as much as you can! There is no
reason for the language to encourage stupid or confusing code.
Default arg values are a convenience introduced to improve readability.
It's been introduced after the experience of functions starting with
several "x = x || v" lines. I wish it was kept to that and not introduce
new ways to write confusing code.

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

Reply via email to