Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80483 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37156 invoked from network); 14 Jan 2015 19:50:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2015 19:50:41 -0000 Authentication-Results: pb1.pair.com header.from=simon@welsh.co.nz; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=simon@welsh.co.nz; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain welsh.co.nz does not designate 103.6.213.4 as permitted sender) X-PHP-List-Original-Sender: simon@welsh.co.nz X-Host-Fingerprint: 103.6.213.4 simon.geek.nz Received: from [103.6.213.4] ([103.6.213.4:48921] helo=simon.geek.nz) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/69-19120-D88C6B45 for ; Wed, 14 Jan 2015 14:50:38 -0500 Received: from [10.1.1.5] (unknown [180.200.154.226]) by simon.geek.nz (Postfix) with ESMTPSA id 75BAA603E3; Thu, 15 Jan 2015 08:50:31 +1300 (NZDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Thu, 15 Jan 2015 06:50:29 +1100 Cc: Marc Bennewitz , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <48223964-2F90-4386-BD8F-934791E45EB4@welsh.co.nz> References: <52243BA6.5040905@sugarcrm.com> <54B6C047.3070301@mabe.berlin> To: marcio3w@gmail.com X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] Skipping parameters take 2 From: simon@welsh.co.nz (Simon J Welsh) > On 15/01/2015, at 06:33, Marcio Almada wrote: >=20 > Marc Bennewitz, Stas, >=20 >> But I think adding "default" as new keyword is a big BC break! >> I personally also don't like it and asked myself why can't the = parameter > simply skipped? >=20 > Default is already a reserved word AFAIK. But I've been thinking about > alternatives to parameter skipping syntax which brought me the Golang > blank identifier _ to mind: >=20 > create_query("deleted=3D0", "name", _, _, true); >=20 > Still not sure if it's better than `default`, though. That would be a BC break as you can currently have a constant _. An = existing keyword makes upgrading easier, and default is easier to = understand by someone who doesn=E2=80=99t know about the feature than an = underscore. --- Simon Welsh Admin of http://91carriage.com/ =E2=80=93 Specialised SilverStripe = hosting