Hacker News new | ask | show | jobs
by alpaca128 1222 days ago
I find the if expression easier to read to be honest. With the integer cast example you need to mentally translate the booleans and do a subtraction in your head to figure out what integer values are involved, with the if expression it's directly visible.