4 ms·
C++ has ternary expressions as well. The author was proposing a change to if/else as a more readable alternative to the ternary symbols. IMO using something l
by tcbawo 3y ago
C++ has ternary expressions as well. The author was proposing a change to if/else as a more readable alternative to the ternary symbols. IMO using something like:
x = “x” unless(true) “y”
Wouldn’t follow the usual left to right order of evaluation, but I think it’s a somewhat readable alternative.