You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorry, I don't want to beat a dead horse, but the relating issues were all closed. I was also wondering what the outcome (if there was one) has been from the recent TC39 May meeting.
I noticed the Babel PR babel/babel#7869 to allow decorators before export. I was reading a couple issues about export statements and class expressions, and I wasn't quite sure if a decision has been made. (allow both before/after export, only before, only after?)
Though I'm agreeing that it might be more aesthetically appeasing having a decorator before export, though from a logical standpoint I'm agreeing with @ljharb that the decorator should come before the class definition, just to be logically consistent.
I was also wondering how the new operator and the extends keyword are being handled?
Unfortunately I don't know how to read the current spec, but I was wondering if I should expect the following (more or less) to work - other than eventually some parenthesis to be inserted, e.g. new (@dec class {}) ?
if @dec export class ... is allowed, I 'd kinda expect @dec return/yield class ... to work as well, but then, where does it end?
The text was updated successfully, but these errors were encountered:
dnalborczyk
changed the title
class decorator export before/after, class expressions, new operator
class decorator export before/after, class expressions, new operator, extends
May 31, 2018
sorry, I don't want to beat a dead horse, but the relating issues were all closed. I was also wondering what the outcome (if there was one) has been from the recent TC39 May meeting.
I noticed the Babel PR babel/babel#7869 to allow decorators before export. I was reading a couple issues about export statements and class expressions, and I wasn't quite sure if a decision has been made. (allow both before/after export, only before, only after?)
Though I'm agreeing that it might be more aesthetically appeasing having a decorator before export, though from a logical standpoint I'm agreeing with @ljharb that the decorator should come before the class definition, just to be logically consistent.
I was also wondering how the
new operator
and theextends
keyword are being handled?Unfortunately I don't know how to read the current spec, but I was wondering if I should expect the following (more or less) to work - other than eventually some parenthesis to be inserted, e.g.
new (@dec class {})
?if
@dec export class ...
is allowed, I 'd kinda expect@dec return/yield class ...
to work as well, but then, where does it end?The text was updated successfully, but these errors were encountered: