const field arguments are persuasive to me. I regret reserving `:`
-
-
let { x: y as X } or let { x as X } would be the same strategy in TS. it's not bad
-
ya `:` syntax predates TS "as" - but want to be consistent w casting. Prob with "as": used in import for value binding
@BrendanEich -
yeah which is why I want it in regular destructuring.
-
would be nice if it were an option in vanilla JS... would align nicely with import
@BrendanEich -
yessir. And it's well motivated (adds expressiveness). Wanna propose it in November together?
-
I also want: constructor(options) { this.{ x, y } = options; }
-
how about `let p2d = p3d.{x, y}` as dual rval form?
@lbljeffmo -
I like that one too :)
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.