Earlier quoted context omitted.
> That's really messed up... No, it's a brilliant use of polymorphism. "null" in Ruby is not a value, it's like everything else an object. So it have methods. Just because you are not used to it doesn't make it messed up.
It's the wrong way to think about organization of logic. It's not a number's place to know how to do looping, it's not an object's place to know whether it's nil or not. Why would every single object have a "nil?" method? You can make it work, but it's just not good style ( and it doesn't serve the purpose of implementation efficiency or machine-sympathy, which I would give exception for). (also, special characters i…
This is not an objective statement, it is one of subjective preference, about which people (demonstrably, by the very existence of Ruby) disagree. The right way to think about organization of logic is not an objective fact, and...
> You can make it work, but it's just not good style
...neither is "style".