3 ms·
I'm mildly surprised the article doesn't mention that Perl, one of the languages that influenced Ruby, also has unless.
by shric 4y ago
I'm mildly surprised the article doesn't mention that Perl, one of the languages that influenced Ruby, also has unless.
- sshine 4y agoThose who don't know history are doomed to repeat it. ;-)
- dgunay 4y agoIn Perl you can write postfix conditionals: `thing() unless $condition`, which at least is more natural usage of "unless" to a native English speaker than the other way around. That's the best way to use it IMO.
- byroot 4y agoIt's the same in Ruby. It's even mentioned in TFA.
- rjsw 4y agoCommon Lisp has unless too, I use it where it makes sense.