3 ms·
Do you mean "use(raining ? umbrella : wear(shades))" or "raining ? use(umbrella) : wear(shades)"? Personally I prefer FORTH, which like Yoda reads, and unambig
by DonHopkins 5y ago
Do you mean "use(raining ? umbrella : wear(shades))" or "raining ? use(umbrella) : wear(shades)"?
Personally I prefer FORTH, which like Yoda reads, and unambiguously puts the condition first, the IF second, the ELSE third, and the THEN last.
FORTH ?KNOW IF
HONK!
ELSE
FORTH LEARN!
THEN
FORTH doesn't have expressions, parens, precedence, or associativity rules, it just has a stack (or rather, two stacks: operand and return; or three of you count the vocabulary search stack). ( And actually it does have parens, but they are for comments! )