Hello Oliver,

  it doesn't matter to the compiler whether it is nonsense or not.
The only thing that matters is whether i can write a correct
lexer/parser for this without breaking stuff. Guys if we were requiring
space around the ternary or anything else we don't do right now then
the damage is much much worse than with class Date.

marcus

Saturday, November 26, 2005, 5:27:54 AM, you wrote:

> Marcus Boerger schrieb:
>> Hello Jessie,
>> 
>>   that's only one case,go with consts. now try
>> $x = $y ? foo:bar:baz:stupid;

> That's nonsense. If I as a programmer cannot comprehend what it should
> mean by looking at it then I shouldn't expect that from the language.
> To me, this looks like the constant stupid in the class baz of the
> subnamespace (?) bar of the namespace foo and the statement lacks the
> third parameter. Or well, should it...? The heck, let's put brackets.
> Ah! Now it's clear. And this is the moment where I would expect the
> language to understand it, too.

> OLLi




Best regards,
 Marcus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to