Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27799 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51269 invoked by uid 1010); 5 Feb 2007 10:44:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51254 invoked from network); 5 Feb 2007 10:44:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 10:44:58 -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.226.6.51 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.226.6.51 darkcity.gna.ch Linux 2.5 (sometimes 2.4) (4) Received: from [195.226.6.51] ([195.226.6.51:55525] helo=mail.gna.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/52-18726-AAA07C54 for ; Mon, 05 Feb 2007 05:44:58 -0500 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 8E32DB9FBB; Mon, 5 Feb 2007 11:44:55 +0100 (CET) Received: from unknown by localhost (amavisd-new, unix socket) id client-XX3eCWJ0; Mon, 5 Feb 2007 11:44:52 +0100 (CET) Received: from [192.168.1.42] (217-162-171-242.dclient.hispeed.ch [217.162.171.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTP id B04B3B7322; Mon, 5 Feb 2007 11:44:52 +0100 (CET) Message-ID: <45C70AA2.2070603@cschneid.com> Date: Mon, 05 Feb 2007 11:44:50 +0100 User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: Lukas Kahwe Smith CC: internals@lists.php.net References: <011701c7482d$a39f6910$6500a8c0@zend.2k> <45C5EC63.7030605@cschneid.com> <1902.67.184.122.32.1170651145.squirrel@www.l-i-e.com> <45C704F0.4040703@cschneid.com> <45C706CF.8090908@pooteeweet.org> In-Reply-To: <45C706CF.8090908@pooteeweet.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at gna.ch Subject: Re: [Named parameters, was Syntactic improvement to array] From: cschneid@cschneid.com (Christian Schneider) Lukas Kahwe Smith wrote: > Named parameters is not just syntax sugar, as they would make it > possible to get compiler errors and phpoc support automatically over > having to implement some array based solution to trigger errors and some Not 'our' way of named parameters where the main feature is the var-args like behaviour of the parameter list, i.e. being able to pass in "unknown" parameters. Useful for e.g. HTML generation or DB queries where you can then map parameter names to HTML attributes or DB fields respectively. So they are effectively an associative array and syntactic sugar was good enough for us. But that's a completely different direction than the and more more strict way PHP is heading (PPP, typehints, ...) so The List(tm) won't like ;-) - Chris