RE: [PHP-DEV] Re: Syntactic improvement to array
| From: | Mike Robinson | Date: | Tue, 06 Feb 2007 00:10:52 +0000 |
| Subject: | RE: [PHP-DEV] Re: Syntactic improvement to array | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27841@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
> More edge cases:
>
> $foo = array(1, 2, 3];
> $bar = [1, 2, 3);
>
> Syntax error because it's unbalancedO
>
> Or kosher, because the choice of start/end delimiters should
> be up to the user?
>
> Should it match whatever rule is in place for:
>
> if (...){
> endif;
echo("foo.inc");
echo "foo.inc";
$foo = array(1,2,3);
$foo = [1,2,3];
echo $foo[0];
echo $foo{0};
$foo = [1,2,3); // parse error
echo("foo.inc"; // parse error
Come on. This isn't rocket science, even for newcomers.
It certainly isn't worthy of the [awesome] level of analysis it's getting.
Holy smokes.
Best,
Mike Robinson