|
|
|
|
|
by ploxiln
3972 days ago
|
|
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 in method names?! my complaints about ruby really don't end with these comments, these are just the most succinct ones) |
|
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".