Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5237 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99679 invoked by uid 1010); 5 Nov 2003 17:05:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99655 invoked from network); 5 Nov 2003 17:05:58 -0000 Received: from unknown (HELO mrelay-a.lmu.ac.uk) (160.9.128.16) by pb1.pair.com with SMTP; 5 Nov 2003 17:05:58 -0000 Received: from lis-exchange2.lmu.ac.uk ([160.9.35.2]) by mrelay-a.lmu.ac.uk with esmtp (Exim 4.10) id 1AHR2J-0007fT-00 for internals@lists.php.net; Wed, 05 Nov 2003 17:01:39 +0000 Received: by lis-exchange2.lmu.ac.uk with Internet Mail Service (5.5.2653.19) id ; Wed, 5 Nov 2003 17:01:27 -0000 Message-ID: <841D90E489448A4F804E1D1B95768BF7D4626B@lis-exchange3.lmu.ac.uk> To: internals@lists.php.net Date: Wed, 5 Nov 2003 17:01:21 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Subject: RE: [PHP-DEV] Proposal: Array syntax From: M.Ford@lmu.ac.uk ("Ford, Mike [LSS]") On 05 November 2003 16:48, Ilia Alshanetsky contributed these pearls of wisdom: > I mean c'mon, is 5 characters that much of a problem and is > absolute code clarity not worth those 5 characters? Character > efficiency is done in Perl, where you can do things like ~= > and @_, but that makes Perl code naturally obfuscated and I do > not think that's a good way to go. I don't think the number of characters is the main issue here -- it's about having a *nicer* set of characters. Personally, I'd be still be in favour (although not quite as much) if the proposed syntax were [[[1,2,3]]] -- for me, it's about having a syntax that shouts *ARRAY* rather than whispers it. (Although the reduction in characters is handy -- particularly in a construct like ['foo' => ['bar'=>'on', 'baz'=>[2,3,5,7]], 'bedrock'=>['rubble'=>['barney', 'betty'], 'flintstone'=>['fred', 'wilma']]].) Cheers! Mike -- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211