Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42324 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81898 invoked from network); 18 Dec 2008 11:20:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2008 11:20:16 -0000 Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.141.85.117 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.141.85.117 uf1.search.ch Linux 2.6 Received: from [195.141.85.117] ([195.141.85.117:37369] helo=smtp.rim.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/C4-55136-DE13A494 for ; Thu, 18 Dec 2008 06:20:15 -0500 Received: from localhost (localhost [127.0.0.1]) by qvot.search.ch (Postfix) with ESMTP id 327B718468B; Thu, 18 Dec 2008 12:20:10 +0100 (CET) X-Virus-Scanned: amavisd-new at search.ch Received: from smtp.rim.ch ([127.0.0.1]) by localhost (search.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c7w64YYc4yB5; Thu, 18 Dec 2008 12:20:05 +0100 (CET) Received: from [192.168.1.72] (ultrafilter-i [192.168.85.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by qvot.search.ch (Postfix) with ESMTPSA id E05FB6E05D; Thu, 18 Dec 2008 12:20:04 +0100 (CET) Message-ID: <494A31E4.80006@cschneid.com> Date: Thu, 18 Dec 2008 12:20:04 +0100 User-Agent: Thunderbird 1.5.0.12 (X11/20060911) MIME-Version: 1.0 To: jay CC: internals@lists.php.net References: <1229560181.14598.13.camel@jay> <49499B34.4000300@activestate.com> <1229563116.6152.16.camel@jay> In-Reply-To: <1229563116.6152.16.camel@jay> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] simpler syntax for arrays From: cschneid@cschneid.com (Christian Schneider) jay wrote: > okey. another syntax: > myfunc($('key1'=>'val1', 'key2'=>'val2', ...)); This has been discussed and rejected several times. If you still want to be able to use this syntax you can use my patch at http://cschneid.com/php/ including a script to convert from and to this syntax. We use this in our production environment so the patch will be updated for future PHP versions ;-) If you want to use it in an environment where you cannot patch PHP you could use our toolkit which provides an auto_prepend file with just-in-time translation from new to old syntax. See: http://itools.search.ch/ Regards, - Chris