Re: New construct discussion Summary (was: what happened to that new isset() like language construct)
| From: | Marcus Boerger | Date: | Mon, 12 Jul 2004 15:37:51 +0000 |
| Subject: | Re: New construct discussion Summary (was: what happened to that new isset() like language construct) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11124@lists.php.net to get a copy of this message | ||
Hello Derick,
Monday, July 12, 2004, 11:21:06 AM, you wrote:
> On Mon, 12 Jul 2004, Sebastian Bergmann wrote:
>> Andi Gutmans wrote:
>> > How about default($var, expr)?
>>
>> It might be a good idea to decide on a name for the construct before
>> the PHP 5.0.0 release in order to make it a reserved word (marked for
>> future use).
> Agreed, and I also like default()
The problem with default() is that there will be tons of scripts out there
that will be broken by this. Hence i'd like to see a more non intuitive
name (like the ifsetor). Probably getvalue() was the best compromise so
far.
Best regards,
Marcus mailto:helly@php.net