Re: what happened to that new isset() like language
| From: | Jasper Bryant-Greene | Date: | Sat, 29 Oct 2005 21:34:52 +0000 |
| Subject: | Re: what happened to that new isset() like language | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19825@lists.php.net to get a copy of this message | ||
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.
--
Jasper Bryant-Greene
General Manager
Album Limited
e: jasper@album.co.nz
w: http://www.album.co.nz/
b: http://jbg.name/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand