Hello to all
I wish to submit a little proposal.
Today the switch statement has an
explicit break at the end of the statement and an
implicit continue to the next case
but this break is very boring and error prone.
Wouldn’t it be possible to think a switch that has an
explicit
Something like `var foo = {}; foo.bar ||= 3` would be very useful.
But not sure how something like `obj['name']['maxlength']` be reduced to
shorthand check if 'name' is not defined.
--
*'I am what I am because of who we all are'*
h3manth.com http://www.h3manth.com
*-- Hemanth HM *
On Fri Feb 7 12:14 PM, Tab Atkins Jr. wrote:
From a user perspective, can someone explain what chain() does?
.chain returns what is directly inside the promise, without doing any
additional
magic. This is different from .then, which flattens
promises.
For a more concrete example,
I'm new too, but don't think that's exactly how things get proposed here :)
Spec changes don't start with solutions - they start with existing problems
you're trying to solve. For example. In ES6 I might do
```js
var res = ({
hello : () = 12, /* no fallback */
world : () = 323, /* no
indeed as breaking new syntax anyway I'd rather use destructuring avoiding
any possible ambiguity on `||=`
On Sun, Feb 9, 2014 at 12:49 PM, Domenic Denicola
dome...@domenicdenicola.com wrote:
There was very active discussion, probably around 1.5 years ago, about
`||=` vs. a proposed `?=`
Good memory. This is all at esdiscuss.org in the meeting notes, but I
can't google for ||= to save my life, even in Verbatim mode. Anyone?
Of course the original proposal is still in strawman stage on the wiki:
http://wiki.ecmascript.org/doku.php?id=strawman:default_operator
/be
Domenic
I had this hunch that it was out there somewhere...hmm thank you guys!
I do agree default parameters, and default destructuring values is the way
to go.
On Mon, Feb 10, 2014 at 6:08 AM, Brendan Eich bren...@mozilla.com wrote:
Good memory. This is all at esdiscuss.org in the meeting notes,
7 matches
Mail list logo