Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97948 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64843 invoked from network); 24 Jan 2017 20:53:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2017 20:53:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.66 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.215.66 mail-lf0-f66.google.com Received: from [209.85.215.66] ([209.85.215.66:36451] helo=mail-lf0-f66.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/9A-00729-6BEB7885 for ; Tue, 24 Jan 2017 15:53:11 -0500 Received: by mail-lf0-f66.google.com with SMTP id h65so18618743lfi.3 for ; Tue, 24 Jan 2017 12:53:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=UoukX+945cnApQLEBuvkNnNY2oK2rSbxCgN8B6uHu/c=; b=m7q/J/WqVkpB1CuqmhG5LyiiaIzKKg/xWr8qmiUztgmVyCcBcRRWxUaDhS6nsyj9R+ M4SjAjhYkZkOTAwy822nCBlwIqwXKdEquM1YvR0ay8HKWXllkRqAbG2IaZs8gfodbKLw 60Iie9wlgmFzrdpFrIOu9xSLB7V1Rv5GKw8eLLAvzeEbHlH0mPBnELBWPqo2hNAynkGL lvAhc5dXZ2ki2R0McZpI1ocNDzK1cW/tpypRvHOY6rYfCzogbon9MrN9Lzyvb2ClG1Uh 3U5i529xyAbg5015GXjsM9tXjgWS4WhGHenuDOZy4hq8W65HXnaArICP7BsybDmZkhTl P1cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=UoukX+945cnApQLEBuvkNnNY2oK2rSbxCgN8B6uHu/c=; b=b/Fphickv9p3oIpQvBll4YcaswZHn+/9Mh5tR8TMTnMcNPr+euQRXr6lWtFMEi3I46 UOFZpxScChx+W9cFmPBDI0F54IzP0aGLUSAHDxdXqDKQHH0A0r63z/fqLr+5Hoh4R8G6 fjd47s6qKGHYX34/NKIyC42X3j8lwUna/yNbHEnMZarCHQ44Ky5NNkj3ww6N26VmShs1 bvnKlX/sHpGRUtBEEmBEeL4p8nNoxoeyZFm7PLBvKEbS4BZ5jFOZaA86UReQe+qdy/DC 2Mn+6Qd0Bl9EmeL1Ye23L/zmug51Sh3IBKmH66viqEq+l8V/65LqRPFnclWfJciom7Ee LP/g== X-Gm-Message-State: AIkVDXL+KD8xOCwT7mR6W59XWZW8OyuI3jGphuzueo1lH7+hYLqAACxF4Se6KreG8qF9WLKAbdLafyrM9MwZ2A== X-Received: by 10.46.80.66 with SMTP id v2mr15029373ljd.6.1485291187762; Tue, 24 Jan 2017 12:53:07 -0800 (PST) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.25.151.139 with HTTP; Tue, 24 Jan 2017 12:53:06 -0800 (PST) In-Reply-To: References: <52a7238f-af22-8960-c829-b1d4ba1bbfdc@free.fr> Date: Tue, 24 Jan 2017 13:53:06 -0700 X-Google-Sender-Auth: ZX3OW9CmzRCfi0lG86Nlm3vRa3E Message-ID: To: Rasmus Schultz Cc: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , Sara Golemon , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Pipe Operator v2 From: levim@php.net (Levi Morrison) On Tue, Jan 24, 2017 at 12:25 PM, Rasmus Schultz wrote: > Isn't `_` more generally used as a "discard" placeholder in most languages? > > At least in Swift, Go, Scala, Dart and C# (starting with v7) I think? > > I don't recall having seen it mean "fill in the blank". In what languages? > > > On Fri, Jan 20, 2017 at 4:26 PM, Levi Morrison wrote: >> >> Oops, sorry for an email that just quotes others; mis-clicked send. >> >> > Last, a cosmetic suggestion : replace '$$' with '$<' (more explicit as >> > 'input data', imo). >> >> 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. >> >> 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. >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > 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".