Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60678 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3121 invoked from network); 27 May 2012 17:27:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2012 17:27:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=mathiasgrimm@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mathiasgrimm@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: mathiasgrimm@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gg0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:39557] helo=mail-gg0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/3C-09778-FE362CF4 for ; Sun, 27 May 2012 13:27:11 -0400 Received: by ggnf2 with SMTP id f2so1715753ggn.29 for ; Sun, 27 May 2012 10:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HQugNFX1Hv2jbZ68HGzw6Zo+p4hsyCVtJFm5i+V5/nk=; b=zU/AvvgfoPt6V6yH/TGLz/MasC05a5+OLvbxQuYa4JGLEZOk+NxaR2P1ceNrzw+q6n 96HJcKcwvzyci3n2vu3/3FhLgstwpAjf5j8YbtWiAG/UkDW2dJMcK8wW8fYkzuO8bDVx 0MbKgUGwb34/vwiByBMr2RxdI6eUlh7s/0jZ7W8zQggiVCdnpvWoPJxvl73+gTXQpn1z //Kq1EVdgpTspralfBqPmtE+7NtCETEBY+A63cG9/zQbMogCH9gjEY/9blInbQHqsUyv +Bd3/csIL4W36+YPHkI63iU6dp7Ty+EZeJuCQpHfms/XzW1uRQyeWApJaQuzbxmNvZFg FQDg== MIME-Version: 1.0 Received: by 10.236.74.74 with SMTP id w50mr5314285yhd.34.1338139628534; Sun, 27 May 2012 10:27:08 -0700 (PDT) Received: by 10.236.63.204 with HTTP; Sun, 27 May 2012 10:27:08 -0700 (PDT) Date: Sun, 27 May 2012 18:27:08 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=20cf3005125637fb6904c107e9c6 Subject: RFC Skipping optional parameters for functions From: mathiasgrimm@gmail.com (Mathias Grimm) --20cf3005125637fb6904c107e9c6 Content-Type: text/plain; charset=ISO-8859-1 in response to https://wiki.php.net/rfc/skipparams I want to suggest something as depicted below: function very_long_params(name:$n, age:$a, other:$o) { } or function very_long_params(:name = null, :age, :other) { $name = trim($name); ... } $result = very_long_params(age:20, other:'foo', bar:$tmp); just be paramaters named, like array, allowing too the order swapping on call -- Mathias Grimm --20cf3005125637fb6904c107e9c6--