Axel Rauschmayer (2014-11-19T14:54:12.000Z)
d at domenic.me (2014-12-05T19:09:24.973Z)
Quoting https://people.mozilla.org/~jorendorff/es6-draft.html#sec-exports > `export default` HoistableDeclaration > `export default` [lookahead ≠ `function`] AssignmentExpression `;` Questions: * Do these grammar rules mean that you have to put anonymous function expressions in parentheses? Is that desirable (given that it’s a frequent use case)? * If the purpose of the first rule is to enable default-exporting of declarations (= no semicolon) – shouldn’t classes be included?
d at domenic.me (2014-12-05T19:09:17.829Z)
Quoting https://people.mozilla.org/~jorendorff/es6-draft.html#sec-exports > `export default` HoistableDeclaration > `export default` [lookahead ≠ `function`] AssignmentExpression `;` Questions: * Do these grammar rules mean that you have to put anonymous function expressions in parentheses? Is that desirable (given that it’s a frequent use case)? * If the purpose of the first rule is to enable default-exporting of declarations (= no semicolon) – shouldn’t classes be included?