RE: [PHP-DEV] Re: GOTO and/or BREAK LABEL

From: Date: Tue, 07 Mar 2006 17:08:58 +0000
Subject: RE: [PHP-DEV] Re: GOTO and/or BREAK LABEL
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-22214@lists.php.net to get a copy of this message
Rasmus, C hasn't "break label;", and I don't understand why Java way confising C people. It is clear and fit into structured programming. Thanks. Dmitry. > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmus@lerdorf.com] > Sent: Tuesday, March 07, 2006 7:09 PM > To: Stanislav Malyshev > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL > > > Stanislav Malyshev wrote: > > RL>>As a C programmer this confuses me to no end. When I > see "label:" > > RL>>I expect > > > > The question is should all languages be like C? So, C has > it that way, > > and > > Java and Perl have it other way. We don't move to prefix > notation because > > Forth has it ;) > > No, obviously all languages shouldn't be like C and PHP has plenty of > stuff that looks nothing like C, but like it or not, a lot of PHP's > syntax came from C and I don't think we should be adding syntax that > looks like something from C but doesn't act like it. > > I still think this is a really fringe feature that isn't worth one of > the first forward compatibility breaks in the procedural > language in years. > > -Rasmus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.internals (#22214) next »