simpler, sweeter syntax for modules
dherman at mozilla.com
Wed Mar 21 23:14:04 PDT 2012
On Mar 21, 2012, at 9:28 PM, John J Barton wrote:
> equals makes sense when it is assigment:
> module Bar = load("bar.js");
It's not an assignment, though. Which is why Brendan didn't like it in the first place, since he felt programmers would get confused that it was a dynamic assignment expression statement.
OTOH, this confusion can't exactly last long, when the parser won't even parse your program. I'm not sure that confusion is really worth worrying about.
More information about the es-discuss