Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80487 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43605 invoked from network); 14 Jan 2015 20:14:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2015 20:14:21 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.180 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.213.180 mail-ig0-f180.google.com Received: from [209.85.213.180] ([209.85.213.180:37959] helo=mail-ig0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/CA-19120-C1EC6B45 for ; Wed, 14 Jan 2015 15:14:21 -0500 Received: by mail-ig0-f180.google.com with SMTP id h15so10957293igd.1 for ; Wed, 14 Jan 2015 12:14:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=pow4fznzXhlQK3M3MDPrGzaYYoko1DJZP352xjLVfV4=; b=kZDKqtCNDgG6gTvla8mR/qUWqwGUPDaFoahtxTowEWUzasGJV8+boTe06l5ph4WhIT XfEGJdhX5Ssz7UDbS6tvmdNsfWISN87+1CpLS+7OsndVdQw5l4QtAZvgWrb+8R3zocp8 GlS42+sc+jPoRYghv62aRXFXRf/1ACv5493MSWuKPQagEVR44ycN5FzD1riasJsjXQca RDzkAgAQQbpjSk5KfCSCSCHEOuMRupyY9ykW3stZu6b9xHGQRISf1AR2GuIFV2am2xmb 9Fwg2KSgMXJ5mC7dI16NDvOymfJiaFKOIl/n6dJ4kzEJMqR04XDXPe5yctuJnuSUqlL7 uIig== X-Received: by 10.107.150.137 with SMTP id y131mr6413622iod.11.1421266458582; Wed, 14 Jan 2015 12:14:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.238.75 with HTTP; Wed, 14 Jan 2015 12:13:58 -0800 (PST) In-Reply-To: <54B6C88E.2050604@mabe.berlin> References: <52243BA6.5040905@sugarcrm.com> <54B6C047.3070301@mabe.berlin> <54B6C88E.2050604@mabe.berlin> Date: Wed, 14 Jan 2015 15:13:58 -0500 Message-ID: To: Marc Bennewitz Cc: Adam Harvey , PHP internals Content-Type: multipart/alternative; boundary=001a1140f33e653515050ca262c9 Subject: Re: [PHP-DEV] [RFC] Skipping parameters take 2 From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --001a1140f33e653515050ca262c9 Content-Type: text/plain; charset=UTF-8 Hi, -1 on this proposal +1 on named parameters As of for this... > > handy and easier. I could dig the archives but I don't remember what > > was the reason why we rejected the idea back then. > > Bikeshedding about the syntax mostly, but that all pales compared to > amount of work that needs to be done in the engine to support named > params. Unless, of course, I'm completely wrong and there's an easy way > to do it, which I am totally missing - in which case please point it out. Pierrick and I both implemented this support for Annotations back in 2010. Maybe it's worth to look into that patch for some ideas. Regards, On Wed, Jan 14, 2015 at 2:50 PM, Marc Bennewitz wrote: > > Am 14.01.2015 um 20:21 schrieb Adam Harvey: > >> On 14 January 2015 at 11:15, Marc Bennewitz wrote: >> >>> But I think adding "default" as new keyword is a big BC break! >>> >> Default already is a keyword: http://php.net/switch. There's no BC break. >> > > OMG you are right - my fault > > > >> I personally also don't like it and asked myself why can't the parameter >>> simply skipped? >>> >> That was in the original proposal, but counting commas is pretty lousy >> if you're skipping more than one or two parameters. Having a keyword >> makes it more readable. >> >> Adam >> >> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada --001a1140f33e653515050ca262c9--