let function

Alexander Jones alex at weej.com
Thu May 14 22:16:19 UTC 2015


When I said throw out, I didn't mean deprecate. I meant like 'let is the
new var' - an entirely optional programming choice.

I'm not sure what warrants that kind of hostility, but I knew enough of the
spec to know that 'use strict' prohibited function declarations as
statements, and that let and const had attractive, sound
and intuitive semantics. I'm sorry if you feel that's an inappropriate
basis for a mailing list post, but I disagree.

Thanks

On Thursday, 14 May 2015, Kevin Smith <zenparsing at gmail.com> wrote:

>
> Good points. All the more reason to throw out declarations as statements
>> in favour of let/const/var, which we all have to understand well
>> anyway, for other types of variable.
>
>
> Declarations aren't going anywhere, and there is zero interest in
> "deprecating" them.  You might want to spend a bit more time learning the
> spec or lurking before making proposals.
>
> Hope that helps.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150514/95106cd6/attachment.html>


More information about the es-discuss mailing list