Especially in dynamic settings, for instance node threads or the webs import() spec, it's pretty useful being able to import something with little more than a url without having to know internals and names. Personally i think it's a bit weird to do import { foo } from 'foo' if 'foo' is the the only export and i try to avoid it whenever possible. Wouldn't feel right to discard something useful just because some tool can't (yet) deal with it.
2
u/[deleted] Aug 27 '18 edited Aug 27 '18
Especially in dynamic settings, for instance node threads or the webs import() spec, it's pretty useful being able to import something with little more than a url without having to know internals and names. Personally i think it's a bit weird to do import { foo } from 'foo' if 'foo' is the the only export and i try to avoid it whenever possible. Wouldn't feel right to discard something useful just because some tool can't (yet) deal with it.