Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68686 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22873 invoked from network); 29 Aug 2013 15:06:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Aug 2013 15:06:37 -0000 Authentication-Results: pb1.pair.com header.from=bryan@ravensight.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=bryan@ravensight.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ravensight.org from 209.85.214.171 cause and error) X-PHP-List-Original-Sender: bryan@ravensight.org X-Host-Fingerprint: 209.85.214.171 mail-ob0-f171.google.com Received: from [209.85.214.171] ([209.85.214.171:51650] helo=mail-ob0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/02-10946-B736F125 for ; Thu, 29 Aug 2013 11:06:35 -0400 Received: by mail-ob0-f171.google.com with SMTP id tb18so605652obb.30 for ; Thu, 29 Aug 2013 08:06:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :thread-index:content-language; bh=C0sTYesp5GTZh9Ak8XaFsfr+bEk+DYkjtuPxxsXrZnA=; b=mbOhyvXW75XlDwIzK5XnKa41Z0M2ZRcshde1b+WyP1W3jM0tloIYpG2BEPwqY4AyPX EJ1Nv7Ns3bFXtujFjpRiMPiP1L5zcaZ9dlQtEwrMmZz91U9RwkRX1ltak9n2uzS4JcOD FPhQGOXlQEBHtnfDp2ZY7nkQUH6wWd4JR16So0BFe65lfrC5gILDpWotnsezRl9KFs/5 NQMBlniNVNJRSiJediOtteeuBA4okiS4k+Yt4WstVnMwkEgNV3nqamdwxgNtWJ7qEdh8 TehR53BES3JEoZNGu2UJj9Tg6VyLrg6gofkszZ6JDLkqaKCpe9VHnGVimguR4q440hSO jBxQ== X-Gm-Message-State: ALoCoQk/TvtGW/6McoHh+NoytXLaPZfCM3EZWipBT1XYsvGgEJGu/oDCMmx8HHdcz0d+iDg9onGS X-Received: by 10.60.80.234 with SMTP id u10mr530426oex.83.1377788792103; Thu, 29 Aug 2013 08:06:32 -0700 (PDT) Received: from Genie (108-202-93-53.lightspeed.mssnks.sbcglobal.net. [108.202.93.53]) by mx.google.com with ESMTPSA id y1sm32836512oek.4.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 29 Aug 2013 08:06:30 -0700 (PDT) To: "'PHP internals'" References: <521F43DA.4020906@lsces.co.uk> In-Reply-To: <521F43DA.4020906@lsces.co.uk> Date: Thu, 29 Aug 2013 10:06:26 -0500 Message-ID: <010f01cea4c9$566ed950$034c8bf0$@org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac6ktm7JW1XNDX61TvWJH4cKhKkmOgAD8ayQ Content-Language: en-us Subject: RE: [PHP-DEV] [RFC] Syntax for variadic functions From: bryan@ravensight.org ("Bryan C. Geraghty") Lester's position seems unclear but I'll weigh-in. Having strict interfaces and arguments means that the developer does not have to parse and validate each parameter that is arbitrarily passed in. If anything, I would prefer to see func_get_args() removed entirely. Now, I know that won't happen but I don't think extending the associated functionality to be more vague is a good choice. -----Original Message----- From: Lester Caine [mailto:lester@lsces.co.uk] Sent: Thursday, August 29, 2013 7:52 AM To: PHP internals Subject: Re: [PHP-DEV] [RFC] Syntax for variadic functions Nikita Popov wrote: > I'd like to propose an RFC, which adds dedicated syntax for variadic > functions: > > https://wiki.php.net/rfc/variadics I can remember in PHP4 days, passing parameters to the database as a string of variables was the norm. Then arrays came along and it was preferable to pass the query followed by an array of values. We could take the array and validate the data in a function, adding any missing values needed before processing the SQL. Going back to the cumbersum method of working just seems wrong? Surely we should be promoting a tidier method of working? -- 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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php