Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11626 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8916 invoked by uid 1010); 29 Jul 2004 22:30:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8893 invoked from network); 29 Jul 2004 22:30:50 -0000 Received: from unknown (HELO asuka.prohost.org) (69.196.31.138) by pb1.pair.com with SMTP; 29 Jul 2004 22:30:50 -0000 Received: (qmail 20336 invoked from network); 29 Jul 2004 22:30:50 -0000 Received: from rei.nerv (HELO dummy.com) (rei@192.168.1.1) by asuka.nerv with SMTP; 29 Jul 2004 22:30:50 -0000 Reply-To: ilia@prohost.org To: internals@lists.php.net, Andrey Hristov Date: Thu, 29 Jul 2004 18:30:55 -0400 User-Agent: KMail/1.6.1 References: <20040729021337.73894.qmail@pb1.pair.com> <1091139076.29517.12.camel@blobule.suds> <410991E1.6070000@hristov.com> In-Reply-To: <410991E1.6070000@hristov.com> Organization: Prohost.org MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-ID: <200407291830.55971.ilia@prohost.org> Subject: Re: [PHP-DEV] GOTO operator From: ilia@prohost.org (Ilia Alshanetsky) Andrey, Here are some more programming languages you may wish to discredit for their goto support. Fortran, C#, Cobol, Ada Ilia On July 29, 2004 08:10 pm, Andrey Hristov wrote: > Robert Cummings wrote: > > On Thu, 2004-07-29 at 17:25, Timm Friebe wrote: > >>On Thu, 2004-07-29 at 04:12, Sara Golemon wrote: > >>>I wrote up a patch for implementing gotos in php scripts a couple months > >>> ago as an exercise in working with the Zend engine. > >> > >>[...] > >> > >>In the five or six year's I've been programming PHP, I haven't ever felt > >>the need to have "goto". Neither have I seen a newsgroup posting related > >>to it in the two years or so I followed the German PHP newsgroup, > >>de.comp.lang.php. > >> > >>I don't think goto is really needed. People using other languages manage > >>to do without it, too. > > > > C has it > > Well, yes, C is very close the ASM, and ASM needs jmp-s. > > > C++ has it > > Yes, C++ was designed to be as close to C as possible. I think > I read this in Straustrup's book. Thus C++ had to have goto. > > > VB has it > > Yes, since it has it roots in Basic. Remember > 10 Print "Hello" > 20 Goto 10 > > > Lisp has "GO" which is pretty much the same > > No experience with Lisp :) > > > Perl > > A language created by a hacker for hackers. I think Perl is quite > famous for the unmaintable code. > > > I'm sure many other too. > > > > Just because people "manage" to do without it in some languages, doesn't > > mean it isn't a useful feature. > > Cheers, > > Rob. > > cheers, > andrey