Hacker News new | ask | show | jobs
by bjoli 2908 days ago
You could have the same looks as the regular if, but have it implicitly return a value. I was just too sleep deprived to be able to type out correct syntax on my phone.

Ruby returns the last thing in a method, which I feel is pretty sane.