simpler, sweeter syntax for modules

Herby Vojčík herby at mailbox.sk
Thu Mar 22 03:38:14 PDT 2012



David Herman wrote:
> 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.

What about just a whitespace then:

module Bar "bar.js";

> Dave

Herby


More information about the es-discuss mailing list