Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_globals.h zend_language_parser.y /tests
break_label01.phpt break_label02.phpt break_label03.phpt break_label04.phpt break_label05.phpt break_label06.phpt break_l

From: Date: Sat, 04 Mar 2006 00:41:58 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_globals.h zend_language_parser.y /tests
break_label01.phpt break_label02.phpt break_label03.phpt break_label04.phpt break_label05.phpt break_label06.phpt break_l
References: 1 2 3 4 5  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4661@lists.php.net to get a copy of this message
On Fri, 3 Mar 2006, Rasmus Lerdorf wrote: > > Sorry, I don't get it. Why do we expect this to be an endless loop? break > > Label just says what loop to break out of. Or am I misunderstanding the > > concern? > > The confusion is that > > label: > > infers that execution ends up at this label somehow. Doesn't really matter > how, but our syntax has it roots in C so if we are going to use a common C > notation for something, it should behave in a somewhat similar fashion. If we > want some notation for naming a specific loop (which I personally don't think > is worth the core change) then couldn't we come up with a different notation? > Heck, even flipping the colon to the other side a-la named SQL parameters > would give people a visual cue that it isn't like a C label. Yes, but I can hardly say this is less confusing... Derick

« previous php.zend-engine.cvs (#4661) next »