Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97949 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84866 invoked from network); 25 Jan 2017 06:07:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2017 06:07:10 -0000 Authentication-Results: pb1.pair.com header.from=php-lists@koalephant.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php-lists@koalephant.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain koalephant.com designates 206.123.115.54 as permitted sender) X-PHP-List-Original-Sender: php-lists@koalephant.com X-Host-Fingerprint: 206.123.115.54 mail1.25mail.st Received: from [206.123.115.54] ([206.123.115.54:52670] helo=mail1.25mail.st) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/9B-00729-88048885 for ; Wed, 25 Jan 2017 01:07:09 -0500 Received: from [10.0.1.57] (unknown [183.89.40.46]) by mail1.25mail.st (Postfix) with ESMTPSA id 58E25604E6; Wed, 25 Jan 2017 06:06:45 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (13G36) In-Reply-To: Date: Wed, 25 Jan 2017 13:06:32 +0700 Cc: Rasmus Schultz , =?utf-8?Q?Fran=C3=A7ois_Laupretre?= , Sara Golemon , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <52a7238f-af22-8960-c829-b1d4ba1bbfdc@free.fr> To: Levi Morrison Subject: Re: [PHP-DEV] Pipe Operator v2 From: php-lists@koalephant.com (Stephen Reay) As a userland developer I feel $$ (or some variation starting with $) is rea= sonably natural - it's a variation on a regular variable. Sent from my iPhone > On 25 Jan 2017, at 03:53, Levi Morrison wrote: >=20 >> On Tue, Jan 24, 2017 at 12:25 PM, Rasmus Schultz wro= te: >> Isn't `_` more generally used as a "discard" placeholder in most language= s? >>=20 >> At least in Swift, Go, Scala, Dart and C# (starting with v7) I think? >>=20 >> I don't recall having seen it mean "fill in the blank". In what languages= ? >>=20 >>=20 >>> On Fri, Jan 20, 2017 at 4:26 PM, Levi Morrison wrote: >>>=20 >>> Oops, sorry for an email that just quotes others; mis-clicked send. >>>=20 >>>> Last, a cosmetic suggestion : replace '$$' with '$<' (more explicit as >>>> 'input data', imo). >>>=20 >>> If we aren't going to use `$$` I'd like to use `_` or `__` which read >>> similar to "fill in the blank" and has precedence in other languages. >>>=20 >>> But at this stage I'd much rather focus on changing the general model >>> to what I've proposed instead of what is outlined in the RFC. I care >>> much more about the feature than the exact syntax for it. >>>=20 >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >=20 > Scala does use it this way. It also uses it in pattern matching to > mean "match anything else" or "I don't care about this one". >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20