Re: Re: [RFC] ifsetor operator
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Re: [RFC] ifsetor operator | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9297@lists.php.net to get a copy of this message | ||
Argh! Guys, let's not use anything that just combines 2 existing
keywords. Being able to read stuff at a glance is important:
if exists(...)
ifexists(...)
or
else if(...)
ifelse(...)
these would do vastly different things but look alike, and that is ungood.
-Rasmus
On Sat, 17 Apr 2004, Jani Taskinen wrote:
> On Fri, 16 Apr 2004, Edin Kadribasic wrote:
>
> >
> >On Friday, Apr 16, 2004, at 22:25 Europe/Copenhagen, Rasmus Lerdorf
> >wrote:
> >
> >> On Fri, 16 Apr 2004, Derick Rethans wrote:
> >>
> >>> On Fri, 16 Apr 2004, Rasmus Lerdorf wrote:
> >>>
> >>>>> This would lead to
> >>>>> $a = isset($b, 'default');
> >>>>
> >>>> I think this is the sanest suggestion yet.
> >>>
> >>> But it's already in use... (isset accepts multiple parameters and does
> >>> an AND on those).
> >>
> >> Ah, that won't work then.
> >
> >How about ifexists()? Someone mentioned this on irc and I think it
> >would work here.
>
> _ __ _ ____
> (_)/ _| ___| |___ ___ / /\ \
> | | |_ / _ \ / __|/ _ \ | | |
> | | _| __/ \__ \ __/ | | |
> |_|_| \___|_|___/\___| | | |
> \_\/_/
>
>
> ifelse()
>
>
> --Jani
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>