Hello Marcus,

On 11/26/05, Marcus Boerger <[EMAIL PROTECTED]> wrote:
> A lexer splits on tokens while white space is optional. If present it
> allows separation of tokens. Forcing this would make whitespace a token
> which would be very bad. The parser then works on the tokens and doesn't
> see any whitespace.

Forcing the use of brackets (instead of whitespaces) only for places
where you want to use namespace constants in ternaries is also
impossible?

> That is no option at all becuase it would make it impossible to write
> portable php code.

Maybe I get you wrong, but a portable package that uses namespace
constants could imo require those who want to use it to set the
appropriate config setting. We're talking about future code, right?
Since this setting should only be seen as a backwards compatibility
switch, people who want to use new packages could then decide to
change their code as necessary.

Sebastian

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

Reply via email to