Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11645 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97431 invoked by uid 1010); 29 Jul 2004 23:20:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 97357 invoked from network); 29 Jul 2004 23:20:09 -0000 Received: from unknown (HELO mail.kromann.info) (64.186.239.125) by pb1.pair.com with SMTP; 29 Jul 2004 23:20:09 -0000 Received: from Swwwing2000 (unknown [64.186.239.115]) by mail.kromann.info (Postfix) with SMTP id 19D972AE58 for ; Thu, 29 Jul 2004 16:21:01 -0700 (PDT) To: X-Mailer: Swwwing 2000 Message-ID: <10911429306360000@9866357972520000.9866341568840000> MIME-Version: 1.0 Reply-To: "Frank M. Kromann" Date: Thu, 29 Jul 2004 16:15:31 -0700 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] GOTO operator From: frank@kromann.info ("Frank M. Kromann") We were all newbies at some point and most of us (not including myself) learned how to handle the language, and so will the newbies of today, even if GOTO is a part of the language. I don't see a need to make this an ini-option. It is allready an option - use t or leave it alone. - Frank > Hello, > > I think we should add an INI option: > > php_newbie true|false > > ;) > > -- > Best regards, > Jason mailto:jason@ionzoft.com > > Thursday, July 29, 2004, 8:54:34 PM, you wrote: > > AH> Sara Golemon wrote: > >>>do { > >>> .....code... > >>> if (something) break; > >>> ...code.... > >>>} while (0); > >>>...cleanup code... > >>> > >> > >> Are you suggesting a hack is better than the real thing? > >> > >> -Sara > AH> The "hack" is working. The manual says : > AH> " Advanced C users may be familiar with a different usage of the do..while loop, > AH> to allow stopping execution in the middle of code blocks, by encapsulating them > AH> with do..while (0), and using the break statement. The following code fragment > AH> demonstrates this:" (a similar code follows) > AH> " Don't worry if you don't understand this right away or at all. You can code scripts > AH> and even powerful scripts without using this 'feature'. " > AH> (the manual states that people can code powerful things without goto hack). > AH> Sara, if you need to have the goto, you know how to implement it with do..while. > AH> The average Joe may not need goto in some case but he will find that it simplifies > AH> his job (but making code clumsy, something what he does not realize). > AH> It is not because I don't like the power of goto, I would like not to be given in the > AH> hands of the newbie. > > AH> andrey > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >