RE: [PHP-DEV] PHP 5.1

From: Date: Tue, 07 Jun 2005 11:29:46 +0000
Subject: RE: [PHP-DEV] PHP 5.1
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-16480@lists.php.net to get a copy of this message
> Goto is a plainly bad idea. Yes it has its uses, but 99% of > the time it would just be completely, mercilessly, utterly abused. Its not good or bad, just a language construct. Its how you use it. > As the people taking the language forward, it's the > responsability of PHP developers not to introduce features > that you just know in advance are going to drag the > language's standards downhill. Magic_quotes and > register_globals have provided plenty of flak already -- > let's not introduce things that we KNOW will generate problems. "We are not giving you 'goto', because we can't trust you with it"? > > Uh? EVERY parser generater that I know of uses goto, and it's > > definitely not a problem if the generate 'spagetticode' - as nobody > > ever has to even look at that code. > > If you want to build a full-blown parser, PHP is not your > language. If you need a code generator, you have a problem. Why not? Applications like phpMyAdmin attempt to parse SQL. Why can't they use the right tool for the job? Jared

« previous php.internals (#16480) next »