Axel Rauschmayer (2014-11-19T14:54:12.000Z)
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?

Thanks!

Axel

-- 
Dr. Axel Rauschmayer
axel at rauschma.de
rauschma.de



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141119/2733648f/attachment.html>
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?