On Thursday 10 January 2008, Tomi Kaistila wrote: > Well if confusing is the goal, then yes, since this is classic Perl. > > I started using PHP, instead of Perl, just so that I would not need play > around with confusing syntax. > > Tomi Kaistila > PHP Developer
The [] array literal syntax is also used by Javascript, and there's even an object literal syntax, {}, which is quite nice. Does that mean "Javascript is classic Perl"? The [a:b, c:d] syntax would be more JSON-esque, while [a => b] syntax would be more consistent with existing PHP. The latter, I think, would get better traction with existing developers and be easier to understand (since it uses the same separator character). -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php