|
|
|
|
|
by nirvdrum
4907 days ago
|
|
To be fair, this was one side of that argument. A lot of people adopted the boolean convention, not the truthy one. And the few examples like "defined?" and "nonzero?" really seem more like quirks than conventions. In five years of doing Ruby, those examples built into the language and the Rails shitstorm are the only places I've seen this truthy convention adopted. Original intent aside, if your language is prided on convention, then it has to be open to the convention changing. |
|
Btw: The mantra "convention over configuration" is a rails mantra and not a ruby mantra.