havent built only POC'd: function f({x: (y: X)}) {} Consistent w casting syntax and gen'izes annot grmr forall bindings
-
-
Replying to @lbljeffmo @BrendanEich
argues against my { x as y } proposal, which might be nice
1 reply 0 retweets 0 likes -
let { x: y as X } or let { x as X } would be the same strategy in TS. it's not bad
1 reply 0 retweets 1 like -
Replying to @wycats
ya `:` syntax predates TS "as" - but want to be consistent w casting. Prob with "as": used in import for value binding
@BrendanEich2 replies 0 retweets 0 likes -
Replying to @lbljeffmo @BrendanEich
yeah which is why I want it in regular destructuring.
2 replies 0 retweets 1 like -
Replying to @wycats
would be nice if it were an option in vanilla JS... would align nicely with import
@BrendanEich2 replies 0 retweets 2 likes -
Replying to @lbljeffmo @BrendanEich
yessir. And it's well motivated (adds expressiveness). Wanna propose it in November together?
2 replies 0 retweets 1 like -
I also want: constructor(options) { this.{ x, y } = options; }
3 replies 1 retweet 5 likes -
Replying to @wycats
how about `let p2d = p3d.{x, y}` as dual rval form?
@lbljeffmo2 replies 0 retweets 0 likes -
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.