Glen Huang (2014-12-17T01:59:32.000Z)
d at domenic.me (2015-01-05T20:34:24.020Z)
@Dave @Allen Thanks for the support and thanks for making the spec more clear to me (that table example is priceless, i noticed it before, but didn’t understand it quite well :). Would be great if you could consider this syntax for the next version (and sorry for the incorrect version that I proposed). Just to provide some use case: I think the only time that you are very likely to do `export default AssignmentExpression` is to expose a default polyfill: ```js var setImmediate; if (window.setImmediate) { setImmediate = window.setImmediate; } else { setImmediate = callback => setTimeout(callback, 0); } export default setImmediate; ``` And the gotcha, like others have pointed out, is that without the “=“ syntax proposed by Dave, it’s not very clear that the exported local variable is unbound. But if this is allowed: ```js export default var setImmediate; if (window.setImmediate) { setImmediate = window.setImmediate; } else { setImmediate = callback => setTimeout(callback, 0); } ``` Then there is no gotcha, and like Dave said, it’s very consist with existing vanilla export syntax: you get to decide what is exported before you rebind it to another value (it can be done with `var setImmediate; export {setImmediate as default}`, but you no longer has a nice one-liner.) My vice versa part in the previous post is trying to cover `export default let` and `export default const`. :)