withBreak blocks

Jordan Harband ljharb at gmail.com
Sun Feb 18 02:42:34 UTC 2018


Your proposal is conceptually the same as a labelled break statement (ie,
GOTO); if you want to follow the advice to avoid labels, I suspect it would
apply to your proposal as well.

On Sat, Feb 17, 2018 at 4:44 PM, 李白|字一日 <calidion at gmail.com> wrote:

> you can simply put these value handler pairs into an array.
>
>
> const a = [[0, function(){}], [1, function(){}]];
> let i = 0;
>
> while (a[i++][0]) {
> a[i - 1][1]()
> break;
> }
>
>
> 2018-02-18 5:58 GMT+08:00 sagiv ben giat <sagiv.bengiat at gmail.com>:
>
>> >  What kind of argument is that? ESlint isn't a JavaScript runtime, it
>> is fully configurable, and I don't see how it's at all relevant.
>>
>> I know ESLint can be configured, it was just an example for how `label`
>> statements are considered as poor design of code.
>>
>>
>>
>> *Sagiv B.G*
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180217/a0346994/attachment.html>


More information about the es-discuss mailing list