Calvin Metcalf (2014-01-30T15:49:46.000Z)
domenic at domenicdenicola.com (2014-02-04T20:56:22.144Z)
forgot to hit replay all On Thu, Jan 30, 2014 at 10:25 AM, Kevin Smith <zenparsing at gmail.com> wrote: > [Did you mean to reply all?] > >> ```js >> var projs = [ >> import "./projections/merc", >> import "./projections/longlat" >> ]; >> ``` > > That idea was last discussed on the list two or three years ago. The > problem is that you are placing strange and novel placement restrictions on > expression forms, which is sure to cause more confusion than it's worth. > What about cases like: > > var x = f || import "blah"; > > Should that be different than this? > > var x = import "blah" || f; > > The current module design is straightforward and clean. Have you tried > doing any coding with them? > yes I've coded with them via ember app kit's grunt es6 module transpiler thingy, the syntax was significantly more complex and verbose than commonjs and we ended up switching over to browserify/commonjs. var x = f || import "blah"; > Should that be different than this? > > var x = import "blah" || f; if we have static linking (which imho is great, not complaining about it, seriously good work guys) then those should act in the same way, what I'm really suggesting is probably more like sugar for, ```js var x = f || import "blah"; //becomes -> import "blah" as _temp; var x = f || _temp; ``` similar to export default which didn't change anything behind the scenes.