You are here: Re: [PHP] The "goto" discussion on the Internals List « PHP « IT news, forums, messages
Re: [PHP] The "goto" discussion on the Internals List

Posted by Rory Browne on 06/07/05 17:38

If there is a use for goto, that can cause certain tasks to be
acomplished faster using goto, and that implementing goto in the ZE
isn't too much work, then I don't see a problem with implementing it.

I'm not totally sure why, but Zend used goto, in the Zend Engine(one
used for php4) code for looping through opcodes. I'm sure zend saw
some benefit in using goto's when they decided to use them in the ZE
Backend.

Goto has (I believe) been described as a method of shooting yourself
in both feet at the same time. Maybe if there was an
enable_expert_mode() command to enable expert mode for that page, or
maybe a <?php_expert opening brace, that enable functionalty that is
recommended for use only by experts. - Just a thought.


On 6/7/05, Jason Barnett <jason.barnett@telesuite.com> wrote:
> I agree 100% with Greg's comments for the goto() / ifsetor() discussion
> on the internals list. As far as speed goes if the dev team knew of
> ways to improve specific parts of the codebase (while maintaining the
> rest of the features available in PHP) then I'm confident they would
> make that change.
>
> There was one comment on the internals list that perhaps the
> documentation should have a big fat red warning label that says "DO NOT
> USE THIS UNLESS YOU REALLY KNOW WHAT YOU'RE DOING". I guess the
> developers assume users actually read the manual, but I think this list
> has proved time and again that end users don't do this. ;) This is
> especially true for newbies (i.e. the ones most likely to get burned by
> using goto() all over their code).
>
> PHP-dev team: at the moment you are supplying me with 95% of the
> features that I need with a base installation. Just focus on getting
> Unicode support, make it stable, and make it fast.
>
> --
> Teach a man to fish...
>
> NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
> STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
> STFM | http://php.net/manual/en/index.php
> STFW | http://www.google.com/search?q=php
> LAZY |
> http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация