4 ms·
Ruby has that. x += 1 if !condition Better as x += 1 unless condition I use them not as an afterthought but by design. This is the Ruby Style Guide abou
by pmontra 7y ago
Ruby has that.
x += 1 if !condition
Better as
x += 1 unless condition
I use them not as an afterthought but by design. This is the Ruby Style Guide about it https://rubystyle.guide/#if-as-a-modifier https://rubystyle.guide/#if-as-a-modifier