Andreas Rossberg wrote:
I still wonder why you think it is so confusing to use the equality sign for module bindings. It is overloaded to mean "define as" and "assign" in almost all language that use it for the latter, and for different semantic categories, too. I never witnessed anybody being confused by that.

My point is simple:

  let a = "hi";
  const k = "there";
  module m = "haha";

"One of these things is not like the other, one of these things just doesn't belong."

Yes, we could make a just-so story that is consistent, and teach it to people. But can we do better?

I agree, though, that '=' is somewhat weird with a plain string on the RHS (but so is 'is'). Personally, I could get used to that, but maybe some variant with 'at' is more appropriate.

Yup,

  module m at "http://lol/m.js";;

seems much better.

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

Reply via email to