MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/g5har3/nodejs_v14_released/fo6m5so
r/javascript • u/pimterry • Apr 21 '20
74 comments sorted by
View all comments
Show parent comments
2
in what way would it change the semantics?
1 u/lesleh Apr 22 '20 It gets translated to this as ES6:class Foo { constructor(bar) { this.bar = bar; } } 2 u/csorfab Apr 22 '20 oh, I didn't know about this shorthand! Now I'm also wondering how babel handles this, although I'm guessing it transpiles it correctly. Only it doesn't make any type checks
1
It gets translated to this as ES6:
class Foo { constructor(bar) { this.bar = bar; } }
2 u/csorfab Apr 22 '20 oh, I didn't know about this shorthand! Now I'm also wondering how babel handles this, although I'm guessing it transpiles it correctly. Only it doesn't make any type checks
oh, I didn't know about this shorthand! Now I'm also wondering how babel handles this, although I'm guessing it transpiles it correctly. Only it doesn't make any type checks
2
u/csorfab Apr 22 '20
in what way would it change the semantics?