Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16011 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52436 invoked by uid 1010); 18 Apr 2005 17:02:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52420 invoked from network); 18 Apr 2005 17:02:22 -0000 Received: from unknown (HELO yahoo.com) (127.0.0.1) by localhost with SMTP; 18 Apr 2005 17:02:22 -0000 X-Host-Fingerprint: 64.233.170.196 rproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.170.196:7725] helo=rproxy.gmail.com) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id B8/CD-18700-C18E3624 for ; Mon, 18 Apr 2005 13:02:20 -0400 Received: by rproxy.gmail.com with SMTP id b11so950019rne for ; Mon, 18 Apr 2005 10:02:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tARrt6ikyR9hCyYVxn+jVVFyd13oxIi2qEO2PtYPjKRJpu5TOMSSuHmobm950Vkf6F7m6ZRDcPRtiKhpilPtz0VSrVu1Lld8Tq9UaY7cJf9jgxUEwbMl8xunou7Tty9GnzGeSTPyMSiLHfyRzgiJu36twxnA5b9/3HqeC4mnc1U= Received: by 10.38.160.51 with SMTP id i51mr5274836rne; Mon, 18 Apr 2005 10:02:12 -0700 (PDT) Received: by 10.38.9.78 with HTTP; Mon, 18 Apr 2005 10:02:10 -0700 (PDT) Message-ID: <3c4c8fa60504181002304be6c2@mail.gmail.com> Date: Tue, 19 Apr 2005 00:02:10 +0700 Reply-To: garbageman@gauldong.net To: Robert Cummings Cc: internals@lists.php.net In-Reply-To: <1113842970.6606.7.camel@blobule.suds> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3c4c8fa605041809405048f671@mail.gmail.com> <1113842970.6606.7.camel@blobule.suds> Subject: "mixed up PHP" variant (Re: [PHP-DEV] named parameters?) From: gauldong@gmail.com (Hendy Irawan) On 4/18/05, Robert Cummings wrote: > On Mon, 2005-04-18 at 12:40, Hendy Irawan wrote: > > Does anybody want named parameters? > > > > These are handy as template functions (like in Smarty), and these are > > achievable since the oldest PHP by using associative arrays. It's > > purely syntactic sugar, but it's a very convenient thing I guess (and > > promotes long, long lists of parameters as well ;-) >=20 > I for one would love them since they are very nice and concise for > functions that take optional parameters and have a lot of them (such as > generic search functions). It would save on the creation of a temporary > array, and then having pass that to the function. But then, I also think > this has been to the list before, and we don't currently have named > parameters, so I'm guessing it got shot down already :) Yeah, I think so... but I did a search on the archives and found nothing (at least, I found nothing on the first N results... maybe the full text indexer needed some tweaking) Anyways, what PHP alternatives to PHP are already available out there? I think it's nice to have a "risk your life" PHP version that merges all available patches that never got into the official PHP. People building the "RYL" PHP will have to specify something like: ./configure --enable-named-parameters --enable-attributes to enable these features (or maybe --enable-all-experimental for the most adventurous). Giving no optional features would build an exact PHP as the official version. Does something like this already exist? --=20 Hendy Irawan http://www.gauldong.net http://dev.gauldong.net