Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100509 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40195 invoked from network); 10 Sep 2017 19:25:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2017 19:25:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=derokorian@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=derokorian@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.179 as permitted sender) X-PHP-List-Original-Sender: derokorian@gmail.com X-Host-Fingerprint: 209.85.223.179 mail-io0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:34929] helo=mail-io0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/81-10715-2B195B95 for ; Sun, 10 Sep 2017 15:25:38 -0400 Received: by mail-io0-f179.google.com with SMTP id i14so14932059ioe.2 for ; Sun, 10 Sep 2017 12:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=G/CC8LLvpa0gjNhikHAdptLeq39hMjrCzUVFNiqBMSc=; b=YJab73YVaLCE9Ovln9ESnVqG7b6YBzN4rp0ttfoXP001oFXhdJ8wRsorDNq1K+02UP HJ1UoHvPUNNrMB1CIVr1oFnyPUoFm4Jks/u3kGElLc8xh4kdO2TVTfIWaYtR0GJISYq+ YYoEGncOmwP8PnJHf2+KX5L5L9U42vv+mM49b5JAz80I7F5wll/qUsWieakvBTznTLvB uTTtNhtabuQlAIixJ0Px5L/H7LMHm21a8VWmaABez+3wIyb+LNSH+xUW019/V/5GGVU0 sDybt8ZQE9KW5x7yGRLJpLTMNucAvtufup2IQbhc9xReogEnWZSYZ0slmJ4rD5+jlzkx MoAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=G/CC8LLvpa0gjNhikHAdptLeq39hMjrCzUVFNiqBMSc=; b=lzVFPdg7wClYnSDIZF/Bw4rbMuWNNzpcVK7MoWkpgm4wHb/e1vbu7ot65tDLSiktPo H8raK95ktF3LX1ks+B/tF2SXVNiXm8KB+yHt1R2EMUsBrmoVWmOnMQNQ4/FsUh3oXCjs ISr/nn7sXWzajNEfaPcHbt/e/NEGYYkvkGHn42aRgukc+F+0N2FZaEefkq4ErVqGYBtV ZoK1oDKBcBmT3ussPS9nkk/Mi00YWOZpgghQCsRs3SDSgzIUzKlxX6EdYUwGXQNkGpBw ec9/rtMfp06HttXLNvRZUd+BJWAaOJEqtKkqJOwYvVfWixZHCzewdaBQ+43r9Fae5pz0 fhJw== X-Gm-Message-State: AHPjjUhPzOktutttcYe5l4OoVAkfYDboz955gz1bnosi7NiSvELnDpch EaLs3qxL/jz6l4YA15dYHKxYQuJpSQ== X-Google-Smtp-Source: AOwi7QB0v96Q7N/NdHzljpAA+14bkTtJo8kDv3Ae+lDXqdA2jDJWJFcpsv9e1K10A7GTAd1oEkYV+VP1satZxb0Rngo= X-Received: by 10.202.172.12 with SMTP id v12mr10001815oie.105.1505071534902; Sun, 10 Sep 2017 12:25:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.39.20 with HTTP; Sun, 10 Sep 2017 12:25:34 -0700 (PDT) Received: by 10.157.39.20 with HTTP; Sun, 10 Sep 2017 12:25:34 -0700 (PDT) In-Reply-To: <044d6dc6-63b4-5242-b910-f5a4fdf48eab@rhsoft.net> References: <044d6dc6-63b4-5242-b910-f5a4fdf48eab@rhsoft.net> Date: Sun, 10 Sep 2017 13:25:34 -0600 Message-ID: To: lists@rhsoft.net Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="001a113ce3f43315400558dac668" Subject: Re: [PHP-DEV] [RFC] Match expression From: derokorian@gmail.com (Ryan Pallas) --001a113ce3f43315400558dac668 Content-Type: text/plain; charset="UTF-8" On Sep 10, 2017 1:23 PM, "lists@rhsoft.net" wrote: Am 10.09.2017 um 21:16 schrieb Theodore Brown: > On Sunday, September 10, 2017 12:45 PM Rowan Collins < > rowan.collins@gmail.com> wrote: > > Would it be possible to add an optional `$strict` parameter to >>>> switch? E.g. >>>> ``` >>>> switch ($i, true) { >>>> >>> >>> I'd very much prefer a "strict switch ($i) { ... }" over a second >>> parameter. >>> >> >> What do either of you think of my "switch-use" proposal, which would >> spell this as "switch ($i) use (===)"? >> > > That seems more complicated and confusing than either of the other > options. Normally `use()` is for inheriting variables in anonymous > functions. > > where did you see `use()` in the proposed SYNTAX? hint: it's not there it's just "strict switch" versus "switch" Rowan's suggestion included use. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php --001a113ce3f43315400558dac668--