Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68877 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25063 invoked from network); 2 Sep 2013 22:53:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 22:53:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.204 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.204 mail4.serversure.net Linux 2.6 Received: from [217.147.176.204] ([217.147.176.204:41897] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/62-29856-10715225 for ; Mon, 02 Sep 2013 18:53:54 -0400 Received: (qmail 911 invoked by uid 89); 2 Sep 2013 22:53:50 -0000 Received: from unknown (HELO linux-dev4.lsces.org.uk) (lester@rainbowdigitalmedia.org.uk@109.152.18.233) by mail4.serversure.net with ESMTPA; 2 Sep 2013 22:53:50 -0000 Message-ID: <522517D5.7020603@lsces.co.uk> Date: Mon, 02 Sep 2013 23:57:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 SeaMonkey/2.20 MIME-Version: 1.0 To: PHP Internals References: <52243BA6.5040905@sugarcrm.com> <5224F2EC.2090609@sugarcrm.com> <52250A97.8050406@sugarcrm.com> <52251149.4080308@sugarcrm.com> In-Reply-To: <52251149.4080308@sugarcrm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Skipping parameters take 2 From: lester@lsces.co.uk (Lester Caine) Stas Malyshev wrote: > Option lists are everywhere, if you look at any framework everybody does > it. Of course, now they do it with option arrays, and if we accept that > option arrays are good then we don't need varargs either. But I thought > the idea was that option arrays are not good enough actually. Parameter hashes are what we have been converting everything TO because it was supposed to be the 'proper way to do it' a few years back. So when did they get kicked out again? Certainly passing a hash through a verify function before acting on it makes sense with all the code I'm using now ... the verify function fills in any default values and checks the rest of the past variables, and secondary objects create detail records. I'd hate to be doing this nowadays with lists of parameters. It just would not work. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk