Re:PHP Annotations Are a Horrible Idea
by robryan on Wednesday October 17, 2012 @09:23AM
(#4664261)
Nope, the parser seems to be pretty brittle around this.
Someone who knows more about the internals can probably explain why this works:
And this doesn't:
[ Parent
| on HN ]
Re:PHP Annotations Are a Horrible Idea
by TazeTSchnitzel on Wednesday October 17, 2012 @10:43AM
(#4664644)
I used to be interested in helping fix PHP, but I gave up.
The reason is because Rasmus and a few others seem to think that using the syntax definition to do your type checking for you is a good idea, and that the hundreds of possible cases they didn't think of, don't matter.