Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110602 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 70875 invoked from network); 16 Jun 2020 17:31:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Jun 2020 17:31:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 102701805CC for ; Tue, 16 Jun 2020 09:17:14 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 16 Jun 2020 09:17:13 -0700 (PDT) Received: by mail-yb1-f174.google.com with SMTP id n123so11077897ybf.11 for ; Tue, 16 Jun 2020 09:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=IEtGielMlhIzV2nQUfcb+RJ8XMCqjTpzmKV3TQ27do0=; b=mxRjWwJMCCJXZmr0MTJDF4tzXtmnIO92/T/JwQszDejDsuEKsAI1SewmUnTcCmEUD2 bs21xuvwHFIYVRSfietyj+Ph/CIJta93TZBhQtz5o+3mUM1s7fh51nFDnefMxInq0fOJ nHlAXr7wvQDo2d3PyT+wAgZjyAVx2CVp/C1rsCfKeWAh859JCpE9H9wM3MFnYT7QrP6n /+ujO/qcrBV+RkhhrLgeb1sApV2rmuMqqSR4jeK1oB1kWGFUBJU3uBilETjiC6Yep+o/ f5aO1AOOLftGpQFRz13UP9dGZXEVP4L3M0eRdonAiNesFJc+FTqhWxoEUasAz3+UbFU7 xodQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=IEtGielMlhIzV2nQUfcb+RJ8XMCqjTpzmKV3TQ27do0=; b=FRodXGKfy2AMhrs3Txl64kQxHo1d/PUXZOalca7LwI/PVNxorsBQ/dN3Avk7nsajaf Rob19c/8v6v3Q1D/zI7B7ndOzx1mBILkzsJJQwEV7LyuDise+llN5msMEjfQ8gyzUOqZ zHhczJrCTmyu06VGF7iEMzJFTkeL4aqeXJ5COE9nZTajzYtarwiV/IxpTsEQBraU8rfq EEGtuHebSvu1+wjvxVsYZr7BkV3xqLfIQSrI0wBOpBSdOJflAcKLkevKxvLnhxiOmszn XHq2whGTD0UMYcU48GCkaqyiLTWcGUAmkvSiTS+IzpFpNKbSPDr9xJv5Wqffkyzm+ASP ZrMQ== X-Gm-Message-State: AOAM533AnvHyVxBr6uCPkYDTAizwiTo1xElfdS3ICFQIA46TxlsGel0o TRJBEIA9J3BOiLjyUqaXHvQEcrcBZy95mTvODQQxghiI X-Google-Smtp-Source: ABdhPJzIY2zL4t5vIaEz6Ht5aOri/5gBWrqxpFrpNPbGV+1236HEz4rdBr+WjbQMCG+S6bVT5hqzqWMhwi9t5d9WveY= X-Received: by 2002:a25:7415:: with SMTP id p21mr5388108ybc.367.1592324232138; Tue, 16 Jun 2020 09:17:12 -0700 (PDT) MIME-Version: 1.0 References: <37f1f8fb-0e1b-cc39-f4b6-6c943a731d49@telia.com> In-Reply-To: <37f1f8fb-0e1b-cc39-f4b6-6c943a731d49@telia.com> Date: Tue, 16 Jun 2020 18:17:00 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [RFC][DISCUSSION] Match expression v2 From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Bj=C3=B6rn >>> I'd like to announce the match expression v2 RFC: >>> https://wiki.php.net/rfc/match_expression_v2 > > I do like this RFC and have one comment. Would it be suitable > to have : as a separator instead of =3D>? `=3D>` is usually used in combination expressions (arrays, yield, arrow functions). `:` is mostly used for switch cases and the alternative control structure syntax [1]. `=3D>` also visually separates the condition and expression better IMO. This has been suggested once before but that's not enough for me to change it at this point. > When reading the Future scope of the RFC I noted that arrow > functions was part of that, so are we here overloading the usage > of the '=3D>' symbol? The future scope mentions possible block support for arrow functions in the future (`fn() =3D> {}`) but we use arrows or colons in match doesn't matter. Thanks for your feedback! :) Ilija [1] https://www.php.net/manual/en/control-structures.alternative-syntax.php