HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 192383 thumbnail
User 111696 avatar

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.
  • 12
  • 1
  • 1823
  • 0

Comments

Add your comment
User 338269 avatar

Miloskov replied ago:

-2 votes Vote down Vote up Reply

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.

User 338269 avatar

Miloskov replied ago:

-2 votes Vote down Vote up Reply

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.

User 285811 avatar

BTM replied ago:

0 votes Vote down Vote up Reply

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()...
,

User 332859 avatar

PureForm replied ago:

0 votes Vote down Vote up Reply

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.

User 236075 avatar

henk replied ago:

0 votes Vote down Vote up Reply

WTF!?

User 287383 avatar

phpimpact replied ago:

1 votes Vote down Vote up Reply

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.

User 287383 avatar

phpimpact replied ago:

2 votes Vote down Vote up Reply

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.




User 338269 avatar

Miloskov replied ago:

-1 votes Vote down Vote up Reply

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.

User 338269 avatar

Miloskov replied ago:

-1 votes Vote down Vote up Reply

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.

User 287383 avatar

phpimpact replied ago:

0 votes Vote down Vote up Reply

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.

User 338269 avatar

Miloskov replied ago:

-1 votes Vote down Vote up Reply

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.

User 395375 avatar

overtheline.myopenid.com replied ago:

-1 votes Vote down Vote up Reply

goto HELL

User 254233 avatar

alien3d replied ago:

-2 votes Vote down Vote up Reply

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.

User 254233 avatar

alien3d replied ago:

0 votes Vote down Vote up Reply

I used php,perl,cold fusion and all the vb.net application.It's more easier to code in php and running it.

User 295190 avatar

ThePeach replied ago:

0 votes Vote down Vote up Reply

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.

User 277251 avatar

mikamtb31 replied ago:

1 votes Vote down Vote up Reply

Don't like it ? Don't use it.

User 287383 avatar

phpimpact replied ago:

0 votes Vote down Vote up Reply

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.

User 277251 avatar

mikamtb31 replied ago:

0 votes Vote down Vote up Reply

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 ?

User 233461 avatar

antych replied ago:

0 votes Vote down Vote up Reply

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.

User 277251 avatar

mikamtb31 replied ago:

-1 votes Vote down Vote up Reply

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.

User 233461 avatar

antych replied ago:

0 votes Vote down Vote up Reply

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.

User 233461 avatar

antych replied ago:

0 votes Vote down Vote up Reply

I forgot to supply the link in case you're still struggling to find it http://wiki.php.net/rfc/namespaceseparator

User 277251 avatar

mikamtb31 replied ago:

0 votes Vote down Vote up Reply

I read that, and it does not consider '.' as a separator. Maybe your superior intelligence saw it there anyway ?

User 233461 avatar

antych replied ago:

0 votes Vote down Vote up Reply

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.

User 277251 avatar

mikamtb31 replied ago:

0 votes Vote down Vote up Reply

Fair enough, I was just curious to read about it.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.