January 20, 2012 5:41 PM



At the TC39 meeting we were trying to think of pragma candidates.

It wouldn't surprise me if JS programmer would happily trade one:

use fn;

per file in exchange for being able to use "fn" as a synonym for "function". In terms of character counts, you come out ahead starting with the second function definition. 

Allen

I have considered this in the past. It always seemed too little, due to return. If it enabled another production:

  AssignmentExpression :
    fn Identifieropt ( FormalParameterListopt ) AssignmentExpression


(or we just added this unconditionally, without the pragma -- but the pragma is good too) then I'd be happy, finally.

/be

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

Reply via email to