On July 30, 2004 02:08 pm, Andi Gutmans wrote: > I'm not saying that. I'm just saying that you should not only think of > yourself as a user but of everyone (i.e. make sure you put yourself in the > shoes of others and try and base your position on that). If you think the > majority of PHP users should have and be using goto than that's another > story.
I support the idea because I personally have come across situations where goto would have been of great help. I have also been in a position to review code of many other developers and can say that the code could've been simpler/faster through the use of goto. So, yes I think many developers could benefit from this. I am not saying we should proclaim goto to be the greatest thing since sliced bread and tell everyone to use. But for those who know it, it is a valid construct that they can use when situation warrants it. Those who don't will eventually learn from their mistakes, I don't think anyone became a great programmer overnight. > Tell me, do you think that every idea mentioned on internals@ should have > been put in the language? We would look like crap today if that had been > done. Absolutely not, which is why we discuss and often argue about them. This process helps to sort the bad ideas from the good and often raise various points the original proposer had not considered. For the most part it seemed to have worked quite well for PHP, wouldn't you not agree? > I think goto is quite similar. There have been no very compelling > arguments in favor. Some of them don't hold because of break "n" and the > few that are don't seem to be that strong of arguments. It seemed to me like people have raised numerous valid argument and have even gone as far as to back them up with examples. If you need more of those, then surely the supporters of goto can provide them. But let's make the decision based on technical merits rather then "what someone may or may not do with this". Ilia -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php