3 ms·
I prefer perl's style, which IIRC is also in ruby and coffeescript: x = 5 x = 4 if condition()
by sneak 5y ago
I prefer perl's style, which IIRC is also in ruby and coffeescript:
x = 5
x = 4 if condition()
- rubyist5eva 5y agoRuby also has a C-like ternary operator. Many options for people that prefer them :)