Re: Construct Request
| From: | Wez Furlong | Date: | Thu, 15 Apr 2004 20:21:55 +0000 |
| Subject: | Re: Construct Request | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9224@lists.php.net to get a copy of this message | ||
+1 for the GCC style syntax.
--Wez.
----- Original Message -----
From: "Hartmut Holzgraefe" <hartmut@php.net>
To: "Sascha Schumann" <sascha@schumann.cx>
Cc: "Ilia Alshanetsky" <ilia@prohost.org>; <internals@lists.php.net>
Sent: Thursday, April 15, 2004 8:47 PM
Subject: Re: [PHP-DEV] Construct Request
> Sascha Schumann wrote:
> > That is basically the same idea once proposed as extending
> > the ternary operator (credit goes to GCC and its C extension).
> >
> > $bar ? : $baz;
>
> yes, that looks like the way it should look like,
> and the danger of newbees abusing it would be way lower
> than with a function ... ;)