Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71093 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6025 invoked from network); 12 Jan 2014 17:28:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2014 17:28:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stadli@gmx.de; sender-id=fail Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.3 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.3 plane.gmane.org Received: from [80.91.229.3] ([80.91.229.3:57115] helo=plane.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/00-05483-A90D2D25 for ; Sun, 12 Jan 2014 12:27:56 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W2OpE-00035X-94 for internals@lists.php.net; Sun, 12 Jan 2014 18:27:52 +0100 Received: from dslc-082-082-129-134.pools.arcor-ip.net ([82.82.129.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jan 2014 18:27:52 +0100 Received: from stadli by dslc-082-082-129-134.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jan 2014 18:27:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Sun, 12 Jan 2014 18:27:40 +0100 Lines: 17 Message-ID: References: <581A185E-0F00-4B49-AA87-859D75E63BA2@googlemail.com> <52D2CAAF.9040708@ajf.me> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: dslc-082-082-129-134.pools.arcor-ip.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-Antivirus: avast! (VPS 140112-0, 12.01.2014), Outbound message X-Antivirus-Status: Clean Subject: Re: [PHP-DEV] Revisiting the "Named Arguments" RFC From: stadli@gmx.de (Christian Stadler) Am 12.01.2014 18:07, schrieb Kevin Ingwersen: > Am So. Jan. 12 2014 18:02:39 schrieb Andrea Faulds: >> On 12/01/14 09:14, Kevin Ingwersen wrote: >>> So therefore, I would actually suggest using colons. It does quite mimic the ObjC calling style, but it keeps the old-fashioned function style, which I honestly prefer (besides, adopting an ObjC messaging style syntax would be either ultra-hard or never accepted :D). >> It also looks like C#'s named arguments. > Oh really? Good to know, I never did anything more than Hello World with C#, because I dont trust in Mono a lot on OS X ^^; Personally as a layman I'd prefer that syntax, too. And for keywords: You could simply put them in quotes, making is similar to the object-syntax in JavaScript/ECMAScript. And even variable-handling would be out of the discussion I guess: $abc = 'class'; test(foo: "oof", bar: "rab", 'function': 'moo', $abc: 'Foobar'); Regards, Christian Stadler