Re: AW: [PHP-DEV] Basic Namespace Requirements
| From: | Marcus Boerger | Date: | Sun, 04 Dec 2005 18:12:09 +0000 |
| Subject: | Re: AW: [PHP-DEV] Basic Namespace Requirements | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21034@lists.php.net to get a copy of this message | ||
Hello Timm,
Sunday, December 4, 2005, 3:22:48 PM, you wrote:
> Hi,
>
>> Hello Jessie,
> [...]
>> you should simply try to come up with a working
>> patch using a working separator which can clearly
>> only be "\".
> Why is \ the only character that could work? Because it's unused? What about
> for examole the tilde (~) or the exclamation mark (!)? - both of them are
> prefixes only, so neither a!b nor a~b will conflict.
Right, but doesn't make the code readable since once again you give
operators multiple meanings. And we don't want to become another perl, do
we?
> On the backslash: It'll be a bitch in places where you need the class name
> as a string (reflection) because \ needs to be escaped withing a string.
> Think: How many backslashes do you need in a regular expression using double
> quotes to represent a single backslash (try to answer this question without
> trying it out. Was it two? Three? four? Six?)
Wrong assumption. The \ won't need to be escaped.
Best regards,
Marcus