News for hackers. Stuff that matters.
Re:Read this post ‘unless’ you’re not a Ruby developer by hk1337 on Tuesday December 13, 2022 @05:57AM (#33967140)
It’s a bit awkward to grasp initially but personally I like it. I don’t wish it in all languages but it works in ruby. It especially works well in templates and checking collections.

Honestly, I find negative checks like `if !something` ugly, I would much rather check if the result is true than !true. The same with unless, I would prefer to check unless false than unless not false or unless !false

There are no comments on this comment yet.