Here it'll fail. My patch is basically allowing colons inside the class/function/constant name, so whitespace here is _crucial_, i.e., the following example WOULD work:
>
$x = $y ? foo:bar : baz:stupid;

Forcing whitespace here isn't an option. It is completely inconsistent with the rest of PHP.

It's also a conversation that was had before PHP5.0 was ever released (when namespaces were first being attempted).

Anyone remember the term "syntactic sugar"?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to