Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16010 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33884 invoked by uid 1010); 18 Apr 2005 16:51:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33850 invoked from network); 18 Apr 2005 16:51:08 -0000 Received: from unknown (HELO interjinn.com) (127.0.0.1) by localhost with SMTP; 18 Apr 2005 16:51:08 -0000 X-Host-Fingerprint: 66.11.173.122 unknown Received: from ([66.11.173.122:37729] helo=interjinn.com) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id 4F/7C-18700-A75E3624 for ; Mon, 18 Apr 2005 12:51:06 -0400 Received: from blobule.suds (blobule.suds [192.168.1.3]) by interjinn.com (Postfix) with ESMTP id 1277F11FB5E; Mon, 18 Apr 2005 12:51:04 -0400 (EDT) To: garbageman@gauldong.net Cc: internals@lists.php.net In-Reply-To: <3c4c8fa605041809405048f671@mail.gmail.com> References: <3c4c8fa605041809405048f671@mail.gmail.com> Content-Type: text/plain Organization: InterJinn Message-ID: <1113842970.6606.7.camel@blobule.suds> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5-4mdk Date: Mon, 18 Apr 2005 12:49:30 -0400 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] named parameters? From: robert@interjinn.com (Robert Cummings) 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 ;-) 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 :) Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'