All I can say about this ... I don't want to language being
intelligent and try to assume any behaviour. In C (gosch, again.
No, I don't want to turn PHP into C) under certain cicumstances
you get ambiguousity warnings. But this wouldn't be a useful idea
for PHP because in C its only during compilation whereas in PHP
it would be runtime. I'ld like to as some kind of ambiguousity
parse error ...
$test?FOO:BAR:BARBARA
And its unreadable too (perl). People will tend to mix up the
default behaviour even it would be $test?(FOO:BAR):BARBARA ...
- Markus
On Sun, Sep 30, 2001 at 07:31:58PM +0200, Andi Gutmans wrote :
> Hey,
>
> I just started playing around with the parser to support the namespaces
> syntax Stig laid out in his RFC. I think I've thought of an ambiguity (with
> constants) which makes me wonder how feasible the proposed syntax is.
> Consider the following expression:
> $test?FOO:BAR:BARBARA
>
> Would this mean that the person meant $test?(FOO):(BAR:BARBARA) or
> $test?(FOO:BAR):BARBARA?
>
> Andi
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Markus Fischer, http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0
-All your scripts are belong to Zend-
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]