Re: Proposal: Array syntax

From: Date: Wed, 05 Nov 2003 18:56:40 +0000
Subject: Re: Proposal: Array syntax
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-5264@lists.php.net to get a copy of this message
On Nov 5, 2003, at 1:29 PM, Marco Tabini wrote:
$a = [1,2,$b[11]] is semantically inconsistent.
How so? Is foo(array(1,2)); semantically inconsistent? On one hand () is used with a language construct (array()), whereas in the other context it indicates arguments to a function. I think that is what he meant by 'grouping' and 'application'. Similar tokens have different syntactical meaning all over the language. Compare '<<' and '<<<'. To me that is no diffent that <variable>[] and []. George (still -1, but because it makes for unmaintainable code, not because it's hard to read)

« previous php.internals (#5264) next »