3 ms·
ternaries are expressions. Just because of that they are far superior to if/else/unless, unless ;-) you're using the ternaries to execute statements with side
by asdajksah2123 4y ago
ternaries are expressions.
Just because of that they are far superior to if/else/unless, unless ;-) you're using the ternaries to execute statements with side effects instead of just returning a value.
- giraffe_lady 4y agoThose are also expressions in ruby.