Proposal: anaphoric if and while syntax
alan at breakrs.com
Thu Sep 15 01:51:45 UTC 2016
What about `else if`?
On Sep 14, 2016 9:28 PM, "Bergi" <a.d.bergi at web.de> wrote:
> Danielle McLean wrote:
> variables declared
>> using `let` or `const` would be scoped to the individual `if` or `while`
>> statement, rather than the containing block. In other words, the above
>> would be equivalent to the following currently-valid form I ended up
>> const oldValue = _.get(object, 'some.long.path');
>> if (oldValue) object.some.long.path = transform(oldValue);
> What about `else` blocks, would the variables be available in them as well?
> - Bergi
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss