Proposal: switch statement multiple

Juan Pablo Garcia sarabadu at
Sat Feb 16 04:02:18 UTC 2019

I think it would be great if the switch statement allows multiple argument

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list