Re: Proposal: Array syntax

From: Date: Wed, 05 Nov 2003 18:36:10 +0000
Subject: Re: Proposal: Array syntax
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-5261@lists.php.net to get a copy of this message
I guess we'll have to agree to disagree $a = [1,2,$b[11]] is semantically inconsistent.
Yeah, I agree to disagree on that one, too :)
Actually, do you realize that you use () both for "grouping" and for application? I can't see anything wrong with using square brackets for array element access and array creation, to be honest.
Actually, no, I don't. I'm not sure what "grouping" and "application" mean...
$a*(1+2) vs. $a(1+2) "Grouping" (not really a good term, I'm sorry) in the sense of determining the order of evaluation. "Application" being normal function application (function call). Cheers, Michael

« previous php.internals (#5261) next »