2 ms·
Dang ternary operator. I wish ternary was "open": X ? A : B : ... Z; Where the value of each expression counted down from A..Z, ie, of there's 8 limbs, th
by thechao 3y ago
Dang ternary operator. I wish ternary was "open":
X ? A : B : ... Z;
Where the value of each expression counted down from A..Z, ie, of there's 8 limbs, then A is 7, B is 6, ..., Z is 0.
- smegsicle 3y agoyou want a one-line switch expression??
- thechao 3y agoYes; not often, but, yes.
- gamache 3y agoSounds similar to computed GO TO, as in: GO TO (LABEL1, LABEL2, LABEL3, LABEL4) I https://docs.oracle.com/cd/E19957-01/805-4939/6j4m0vn9l/index.html https://docs.oracle.com/cd/E19957-01/805-4939/6j4m0vn9l/inde...