Re: Re: PHP 5.1 (Or How to break tousands of apps out there)
| From: | Ron Korving | Date: | Fri, 25 Nov 2005 22:53:38 +0000 |
| Subject: | Re: Re: PHP 5.1 (Or How to break tousands of apps out there) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20462@lists.php.net to get a copy of this message | ||
"Rasmus Lerdorf" <rasmus@lerdorf.com> wrote in message
news:43878D08.4020105@lerdorf.com...
> Jessie Hernandez wrote:
> > Hi Marcus,
> >
> > Marcus Boerger wrote:
> >> Hello Jessie,
> >>
> >> that's only one case,go with consts. now try
> >> $x = $y ? foo:bar:baz:stupid;
> >>
> >> now what?
> >>
> >> best regards
> >> marcus
> >>
> >
> > Here it'll fail. My patch is basically allowing colons inside the
> > class/function/constant name, so whitespace here is _crucial_, i.e., the
> > following example WOULD work:
> >
> > $x = $y ? foo:bar : baz:stupid;
>
> Forcing whitespace here isn't an option. It is completely inconsistent
> with the rest of PHP.
>
> -Rasmus
Right, forcing whitespace is ugly when it never had to be used before, but a
warning or error could be thrown when users should fall back on for example
$x = $y ? (foo:bar):(baz:stupid)
Ron