3 ms·
Ada calls these "if expression" and the switch-variant "case expressions". It's the same syntax as the control flow ones, just wrapped with parens. value
by pyjarrett 4y ago
Ada calls these "if expression" and the switch-variant "case expressions". It's the same syntax as the control flow ones, just wrapped with parens.
value := (if a then True
else (
case b is
when 1 => False,
when others => Undefined
));