Re: Bug #2341: expression evaluation - improvement

From: Date: Tue, 21 Sep 1999 17:21:45 +0000
Subject: Re: Bug #2341: expression evaluation - improvement
References: 1 2 3 4 5  Groups: php.dev 
Request: Send a blank email to php-dev+get-11158@lists.php.net to get a copy of this message
On Tue, Sep 21, 1999 at 12:05:18PM -0500, Andrei Zmievski wrote: > Rodent of Unusual Size wrote: > > I agree if it's a reusable expression. If it's a one-time use, > > having to create a variable and then pull something out of > > it strikes me as wasted cycle and source. Personally, I think > > there are situations in which anonymous arrays and lists are > > useful. > > > > Not that I have an opinion about whether this should be done > > in PHP; I just find your argument specious, Andrei. > > Ok, having thought about it a bit more, I do have to admit that something > like that might be useful in certain situations. Of course, I have no idea > how easy it would be to implement in Zend. Perl can. :-) $ perl -e 'print "".(1,2,3)[1]."\n"; ' 2 (leading "" is necessary to avoid parser conflict) -- Regards, Sascha Schumann Consultant

« previous php.dev (#11158) next »