On Tue, Mar 6, 2012 at 10:53, Brendan Eich <bren...@mozilla.org> wrote:
> This approach requires a restriction: [no LineTerminator here] between the > ) and the {: > Yes, I did put that in the OP, but it looks like my mail client helpfully wrapped at that point, which is a bit confusing :) Leaving out the f in the "definition" doesn't help, since (a,b,c) is a > comma expression. The requirement is no LineTerminator between the ) and > the {. > Yes, an identifier is required. It would not be possible to define an unnamed function in this way. > Without a leading keyword, it's harder to find the functions. Not > impossible, not saying this is a deal breaker. But it is harder. > Agreed. This was inspired by seeing some code in candor and dart, and getting jealous of their nice terse functions :) However, having not used this style in real programs, it's hard to comment on whether it would continue to be nice, or get annoying.
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss