we get plenty of reports on this in Flow too. We came up with an inline syntax but ppl would still make the mistake @BrendanEich
-
-
how about `let p2d = p3d.{x, y}` as dual rval form?
@lbljeffmo -
I like that one too :)
-
glad we saved monocle ;)
End of conversation
New conversation -
-
-
interesting, will have to process
@BrendanEich -
shorthand for mutating Object.assign (similar to { ... } being shorthand for non mutating assign)
-
The duality is between lvalue and rvalue, destructuring and constructing ("constructuring"?). No "non mutating assign".
-
was being a bit cheeky because FBers tend to prefer FP patterns (constructing) so { ...a, ...b } not a.{ b, c } = d;
End of conversation
New conversation -
-
-
not sure about the syntax, but whitelisted mass init of this in cons would be sweet!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.