Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68915 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31388 invoked from network); 6 Sep 2013 17:29:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2013 17:29:14 -0000 Authentication-Results: pb1.pair.com header.from=admacedo@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=admacedo@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.178 as permitted sender) X-PHP-List-Original-Sender: admacedo@gmail.com X-Host-Fingerprint: 209.85.223.178 mail-ie0-f178.google.com Received: from [209.85.223.178] ([209.85.223.178:49362] helo=mail-ie0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/F4-05619-9E01A225 for ; Fri, 06 Sep 2013 13:29:14 -0400 Received: by mail-ie0-f178.google.com with SMTP id f4so7456684iea.37 for ; Fri, 06 Sep 2013 10:29:11 -0700 (PDT) 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=ameRFfiC7UCCPXdZmxr7PhrjpVa/aFWOrHtfI+xGMHA=; b=B4mXyVGwN/qYUUTHdgEm/C5Sj/EbVrTR1R+dv2Z/i+ZiSNyrXx5KHlO4NQq8u7nkZh Z6aiwD0zSiAgjHC8kXF/OoRLzY6eAJkMnoHpTAib4Ve7eyWHbvkM1r9lzCf1ZVZdIW91 zg3PN8PvUu064X8NeYbQqatZet7m7NyyLnDHNg0/+VByCqT+O2NPDEHRpAKlRGP1GbnE O6UrmnqFJiQjLSHYuedewhE+hnHO51NPpivKzaZQ2AdwAz6pdhI9hQMr/aLRMQm2Eg5o LtnT/LU4akZcYlyHJ4jDYanS2BDwUFPM2YtWOXBBPRXmDzSDcthGBncPQ7dk3F0u7/Qq D+EQ== X-Received: by 10.43.11.69 with SMTP id pd5mr1111613icb.62.1378488551237; Fri, 06 Sep 2013 10:29:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.240.77 with HTTP; Fri, 6 Sep 2013 10:28:30 -0700 (PDT) In-Reply-To: References: Date: Fri, 6 Sep 2013 18:28:30 +0100 Message-ID: To: Dan Ackroyd Cc: Nikita Popov , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Named parameters From: admacedo@gmail.com (Daniel Macedo) Dan, That's a good question as well, with the current $var syntax I'm assuming NO. You're using the $var3 name as a key, not as the $paramToOverride value. Maybe the collon could be used here? $paramToOverride = 'var3'; testFunction(:$paramToOverride => 'bar'); // Colon before $ would make the key :var3 ? Then again, I like the colon syntax instead of => to assign fn(key: val) pairs for readability/clearer separation of array syntax, so that would probably make: testFunction(:$paramToOverride: 'bar'); As my suggestion and I'm not sure I like it... :x