goto introduced in PHP 5.3

I’ve been reviewing list of changes in PHP 5.3 and one thing captured my attention – for some reason they decided to add “goto” in PHP. I won’t even bother to look for rationale after that decision, I can bet it looked like:

– should we add goto support in PHP?

– no, it’s bad!

– yes, it’s useful when you don’t abuse it!

– if you can’t code without goto, you’re pathetic caricature of programmer

– real programmers KNOW how to use goto properly

And so on for 5000 posts…

At least they added some small advice from xkcd on their goto manual page

By mgorecki

Leave a comment

Your email address will not be published. Required fields are marked *