By bloid
via zdnet.com.au
Published: Jun 12 2009 / 14:40
Few things can spark more religious fervour amongst programmers than the mention of a goto statement. PHP has stepped into the middle of the firefight by announcing that it will be implementing goto functionality in version 5.3.



Comments
Miloskov replied ago:
Unbelievable!, As I said in another comment, PHP is getting more retard with each release, the new namespace design sucks big time and now they allow the supreme spaghetti code statement goto, Now PHP will be a real mess and pain in the neck to work with.
Perl 6 is almost ready maybe this december we will have a gift and forget this PHP garbage.
Miloskov replied ago:
By the way, C and Linux use the goto for specific situations that need to match the hardware for jumpers and so on but PHP a really higher level language used for Web Application and Website development? hilarious, PHP continue to impress me in the retard programming language space. ROFL.
BTM replied ago:
I feel bad for you OtengiM. Having been forced to use goto by the allmighty gods of programming :-(
If only they would implement the function we all miss pleaseDoMyWorkAndGiveMeStuffAndMoney()...
,
PureForm replied ago:
I think most people forget about PHP's CLI interface... which is where I see goto being useful, though I'll never use it myself for web stuff.
henk replied ago:
WTF!?
phpimpact replied ago:
OtengiM, stop posting rubbish comments. You only know one language, and because of that, you never have an interesting opinion. After reading some of your messages, I came to the conclusion that you are not a python/perl/php developer like most of us, you are what we call a wannabe. So go and do something useful for a change, I don't know, read a book and learn a new language.
phpimpact replied ago:
Having said that, Rasmus keeps getting it wrong. PHP is used by web developers, not Linux kernel hackers. If you think that adding goto to PHP removes the maze of nested branching structures nicely, then your are definitely using the wrong tool for the job. PHP, just for the Web, nothing more.
Miloskov replied ago:
phpimpact last comment is good, yes PHP is for website development so we agree does not need goto and some design of the language is bad. thats my point.
Miloskov replied ago:
ROFL, I know only one language?, I use Java, Python, Haskell and C. I use very very few times PHP for Website but is so bad language that always I go back to Python. Also I learned in the past Assembly x86, Pascal, Basic, Clipper and Cobol. Really I know what Im talking about.
It seems you are a PHP zealot. I use many languages, Im not a zealot of something.
phpimpact replied ago:
And that's why you spend most of your time bashing php? Come on. If it's true that you are a programmer, then why do you even care? You should be way beyond this by now. Let the web developers use it and abuse it, love it and hate it. Languages come and go, don't allow your time to be cluttered up by things that don't make a difference, like arguing about a scripting language.
Miloskov replied ago:
Actually I care about PHP because mostly I do web application development lately and I would like to replace Java with PHP but the problem are those flaws. Before the namespace and some bad decisitions they are making, PHP looked pretty good 5.2 is the best of PHP IMHO. But I went with Python and I like it a lot now and I would like to use PHP because somethings are ok but lately is not ok. Anyway I like to talk about syntax and programming languages and sometime bash about them. Peace.
overtheline.myopenid.com replied ago:
goto HELL
alien3d replied ago:
hmmm.when to debug php code in dreamweaver ,goto is the future.Crtl +G anyone :) .goto not appicable in large scale of project and so also procedural.It's time for oop ma.What i saying was to make erp system.Did we need a large 5 mb just to goto?I allready got problem naive programmer buiding 20k line.idiot.
alien3d replied ago:
I used php,perl,cold fusion and all the vb.net application.It's more easier to code in php and running it.
ThePeach replied ago:
at the end of the article he should have stated that php manual needed a big fat warning on top of the page stating: "SCRIPT KIDDIES GO AWAY" or something similar. This is the only thing I fear about goto. The rest is just BS.
mikamtb31 replied ago:
Don't like it ? Don't use it.
phpimpact replied ago:
It's clear that the guy who wrote this article, Chris Duckett, doesn't know anything about OOP. However, it's also clear that the PHP project is out of control, and instead of removing functionality, they keep adding and hacking it, not to mention the \embarrassing\namespaces. But what's worst, they've alienated the community. 40% of the php programmers I know moved to python in the last couple of years.
mikamtb31 replied ago:
I still have to read an explanation for the namespace thing. I mean an explanation that show the decision makes sense. Does anyone have a link for me ?
antych replied ago:
Try google. Anyway "dot" operator used in many other languages is already taken by string concatenation. They had their reasons and it really doesn't matter... that much.
mikamtb31 replied ago:
Wow thanks, google ? Never thought of it. I said I was looking for an explanation that made sense, because I could not find one. If they can make \ work for namespaces, then surely they can make . work too. So there has to be a reason, I've never read it.
Great comment, please post again.
antych replied ago:
Surely the first hit on google linking to a wiki documenting the decision process and even archived discussion from IRC would satisfy most intelligent people. But they would be able to find it themselves. Glad to help anyway.
antych replied ago:
I forgot to supply the link in case you're still struggling to find it http://wiki.php.net/rfc/namespaceseparator
mikamtb31 replied ago:
I read that, and it does not consider '.' as a separator. Maybe your superior intelligence saw it there anyway ?
antych replied ago:
It was not considered because it's already reserved for other uses. There's was an idea for a double dot, but it didn't catch on. Seriously, people behind this decision are not idiots, I'm sure they did the best they could.
mikamtb31 replied ago:
Fair enough, I was just curious to read about it.
Voters For This Link (12)
Voters Against This Link (1)