Re: The "goto" discussion on the Internals List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx> 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
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux