Date: 09/21/99
- Next message: Bug Database: "[PHP-DEV] Bug #2284 Updated: type conversion in list()"
- Previous message: Andrei Zmievski: "Re: [PHP-DEV] Bug #2341: expression evaluation - improvement"
- In reply to: Andrei Zmievski: "Re: [PHP-DEV] Bug #2341: expression evaluation - improvement"
- Next in thread: Rodent of Unusual Size: "Re: [PHP-DEV] Bug #2341: expression evaluation - improvement"
- Reply: Rodent of Unusual Size: "Re: [PHP-DEV] Bug #2341: expression evaluation - improvement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] Bug #2284 Updated: type conversion in list()"
- Previous message: Andrei Zmievski: "Re: [PHP-DEV] Bug #2341: expression evaluation - improvement"
- In reply to: Andrei Zmievski: "Re: [PHP-DEV] Bug #2341: expression evaluation - improvement"
- Next in thread: Rodent of Unusual Size: "Re: [PHP-DEV] Bug #2341: expression evaluation - improvement"
- Reply: Rodent of Unusual Size: "Re: [PHP-DEV] Bug #2341: expression evaluation - improvement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

