Re: Re: PHP 5.1 (Or How to break tousands of apps out there)

From: Date: Sat, 26 Nov 2005 13:07:39 +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  Groups: php.internals 
Request: Send a blank email to internals+get-20540@lists.php.net to get a copy of this message
Hello Marcus, On 11/26/05, Marcus Boerger <helly@php.net> 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

« previous php.internals (#20540) next »