Re: what happened to that new isset() like language
| From: | Sebastian | Date: | Sat, 29 Oct 2005 01:48:18 +0000 |
| Subject: | Re: what happened to that new isset() like language | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19802@lists.php.net to get a copy of this message | ||
Wow, it'll be just like perl! this is so great.
On 10/28/05, James Crumpton <james@safesearching.com> wrote:
> Andi Gutmans wrote:
> > I don't think it's a matter of giving the engine a try. I think we first need
> > to make a decision what the best way to go is and then we can discuss
> > implementation if/what is possible. Once 5.0.0 is out I'm going to have more
> > time look into this.
>
> What's the word on this?
>
> Some of the names given were:
> issetor
> ifsetor
> ifset
> ifnull
> coalesce
>
> I'm actually kind of partial to:
>
> $a = $foo || $bar;
> $a = $foo || $bar || $xyz || $etc;
>
> Or better yet (or maybe in addition too):
>
> $a['foo'] ||= 'bar'; // if set do nothing, otherwise assign 'bar'
>
>
> -james
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
-------------
buddhahead@gmail.com