Cracks in the Foundation (PHP Advent)
Posted Dec 19, 2011 13:21 UTC (Mon) by nix
In reply to: Cracks in the Foundation (PHP Advent)
Parent article: Cracks in the Foundation (PHP Advent)
If you wanted to complain, you'd have to complain that "0.0" is considered true; "0.0" is considered equal to 0.0, and that 0.0 is considered false.
Who the hell thought that
was sane? It makes C++'s loop-avoidance rules on user-defined implicit casting ('no more than one') look sensible.
I know, I know, nobody thought it was sane -- the string-equals-number rule was added because it might be useful without considering its effect on the semantics of the language.
"Pile in useful features without much global consideration" works for a lot of software. It really really does not work for languages. Does PHP have nothing like the PEP process, where the badly-thought-out ideas can quietly die?
to post comments)