Re: GOTO operator

From: Date: Sat, 31 Jul 2004 12:38:57 +0000
Subject: Re: GOTO operator
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-11763@lists.php.net to get a copy of this message
On Fri, 30 Jul 2004, Aidan Lister wrote: > > Develop some wacky construct that you have to use instead... that way, it > > will scare off novice users, and expert programmers will HAVE to know what > > they're doing and know that they really need it before they have to > > implement it. It's along the lines of "make the most dangerous stuff the > > hardest to do". > > I think this is probably one of the best ideas... > > > I'm not sure how, though... a huge language construct > > (goto_this_line_please)? Use numbers instead of labels? Relative jumping? > > Require extra messages? A weird symbolic construct? *shrug* > > I'd just disable it by default, force them to compile --with-goto > > That definitely stops the novices, and allows experts to use it if they > reallllly need it. > > Of course then portability then becomes a problem... So this is yet-another-bogus-idea ;-) Derick

« previous php.internals (#11763) next »