Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71099 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19131 invoked from network); 12 Jan 2014 20:10:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2014 20:10:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=bof@bof.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bof@bof.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: bof@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:57546] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/11-13233-3A6F2D25 for ; Sun, 12 Jan 2014 15:10:13 -0500 Received: (qmail 4242 invoked by uid 1009); 12 Jan 2014 21:10:08 +0100 Received: from 209.85.216.177 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/18339. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:1(209.85.216.177):. Processed in 0.07104 secs); 12 Jan 2014 20:10:08 -0000 X-Antivirus-MYDOMAIN-Mail-From: bof@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.216.177):. Processed in 0.07104 secs Process 4228) Received: from mail-qc0-f177.google.com (gmail@bof.de@209.85.216.177) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 12 Jan 2014 21:10:08 +0100 Received: by mail-qc0-f177.google.com with SMTP id i8so2188825qcq.22 for ; Sun, 12 Jan 2014 12:10:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1FZzeUdqWVFhG2UdO4CFiAnVdPtoZjdOJlGoBSI/eLA=; b=KgY4pNmYUfuGY6XXuSYV+Uw1DQrSJevLsfrwyQmZllvRREFYEoynvfSSnmXxWvkRhe L7nUI8RupzKJqUsgyVt22N+CCDO77C9L9TPIY5UapJ0Drk5d5rLhb/9kLYF0+sCcb/dv HaqWjOxKNn6KOnfGqVQdgI2Uh8t9EuoBfvpC60aD0WKXUeJ+9cVk+25pwitREpYNIqvd f5abH5Gs4dZkc/sh3s7y9etSN2BhZFL6pUFb7nN1x+Qx/eCcSRuxS4QDLVF0q1suVHL3 AOx8PusY/1oiJTISEuA4821tSqN4oLWMcWAMhgQYP040i/65li44dqCiZz3hgD50gtcf mGfA== MIME-Version: 1.0 X-Received: by 10.49.39.165 with SMTP id q5mr32451063qek.48.1389557406746; Sun, 12 Jan 2014 12:10:06 -0800 (PST) Received: by 10.140.84.175 with HTTP; Sun, 12 Jan 2014 12:10:06 -0800 (PST) Received: by 10.140.84.175 with HTTP; Sun, 12 Jan 2014 12:10:06 -0800 (PST) In-Reply-To: <52D2ED5F.4000706@gmail.com> References: <581A185E-0F00-4B49-AA87-859D75E63BA2@googlemail.com> <52D2ED5F.4000706@gmail.com> Date: Sun, 12 Jan 2014 21:10:06 +0100 Message-ID: To: Rowan Collins Cc: internals Content-Type: multipart/alternative; boundary=047d7bd6b4929fcee104efcb8b9d Subject: Re: [PHP-DEV] Revisiting the "Named Arguments" RFC From: bof@bof.de (Patrick Schaaf) --047d7bd6b4929fcee104efcb8b9d Content-Type: text/plain; charset=ISO-8859-1 Am 12.01.2014 20:31 schrieb "Rowan Collins" : > > On 12/01/2014 08:16, Patrick Schaaf wrote: >> >> Regarding Syntax at the call site, I feel that it is exactly right the way >> it is proposed / implemented now. That way mirrors most closely the syntax >> of static array definition, while saving some typing (omitting of double >> quotes) where key names do not clash with keywords. In fact, once >> established, I would love static array initialization to also permit >> nonclashing keys to omit the doublequotes :) > > > Personally, I'm against allowing barewords to act as strings wherever they don't - currently - clash with keywords, for two reasons: >... > Secondly, barewords already have a specific meaning in PHP: constants. By convention, constants are UPPER_CASE, but the engine doesn't actually care, and array(foo => bar) is actually valid PHP, but might be equivalent to array('six by nine' => 42), if that's what 'foo' and 'bar' are define()d as. I completely overlooked that. You are totally right. best regards Patrick --047d7bd6b4929fcee104efcb8b9d--