Sometimes with ES2015 I want all my args to be an object and use (de)structuring--pseudo named arguments. const add = ({x, y}) => x + y
-
-
Replying to @soutar
@soutar@ryanflorence@markfunk the syntax that you'd use to express it in other languages is ambiguous and requires runtime semantics1 reply 0 retweets 0 likes
@soutar @ryanflorence @markfunk the cons are outweighed by the fact you can just use destructuring params and an object... so no point
11:44 AM - 1 Feb 2016
0 replies
0 retweets
1 like
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.
he/him 