It's being considered, just indirectly through a more powerful feature: https://github.com/tc39/proposal-pattern-matching On Fri, Feb 15, 2019 at 23:02 Juan Pablo Garcia <[email protected]> wrote:
> I think it would be great if the switch statement allows multiple argument > > Example > Switch(a,b) > Case: 1,true > Case: 1,false > Case: 2,true > .... > > > Switch (true, true) > Case: isPremium, true > Case: isBasic, hasCredit > Case: isBasic, !hasCredit > > > Maybe case: default, true > > Look forward to read yours views. > > > > I used to code in cobol and was very useful the sintax > COBOL example: > Evaluate a also b > When 1 also true > When any also false > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

