Re: what happened to that new isset() like language
| From: | Marcus Boerger | Date: | Sat, 29 Oct 2005 21:39:53 +0000 |
| Subject: | Re: what happened to that new isset() like language | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19826@lists.php.net to get a copy of this message | ||
Hello Jasper,
Saturday, October 29, 2005, 11:34:52 PM, you wrote:
> On Sat, 2005-10-29 at 14:07 -0700, Sara Golemon wrote:
>> >> Evaluating an idea based on it's syntactic similarities to other
>> >> languages is complete and utter nonsense. It has nothing to with being
>> >> like language Xyz. It has to do with familiarity to language constructs.
>> >> One already understands the idea of 'this || that'. It's certainly
>> >
>> > I'll throw the water on this one:
>> >
>> > <?php
>> > $c = 0;
>> > $a = 1;
>> > var_dump($c || $a);
>> > ?>
>> >
>> > Changing true into false consitutes a rather severe BC break :).
>> >
>> How about ||| and |||= ?
>>
> How about ~ and ~= ? Shorter to type.
> I know that in logic it can mean NOT, but I think nearly all PHP
> programmers would know that ! serves that purpose in PHP.
And guess what we have that ~ operator already: php -r 'var_dump(~0);'
RTFM :-)
Best regards,
Marcus