Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109400 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71648 invoked from network); 28 Mar 2020 21:04:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Mar 2020 21:04:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E0CBD180088 for ; Sat, 28 Mar 2020 12:29:29 -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,HTML_MESSAGE, 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-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 ; Sat, 28 Mar 2020 12:29:29 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id p10so13473338ljn.1 for ; Sat, 28 Mar 2020 12:29:29 -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 :cc; bh=7OYun6lkhZZFAXPf3GUVi0/l3b1/eArMRuwKgZLJ2jU=; b=OJaEX1ywiqAkANt3AdiUR3TBso0zXHvj8iPr1kBg329XDQrk2UIQM3LQKyUXs24yAF yUhaFfOj7KGNHYf0N9uzILZSpqLbW+N46xqHKiIJ5A/quZPSK0LV+909hqiz1Eo1fRE/ bz9B7GasnB8lHMSNnfsPKv1c0o1/1mqZjl2tURyzsFCuwrHdhdUROiwhbkdD6/eGoEBF q5IJafuuDBFijhrMpqEgA7Ut7BcCf9dQIcD7TaagLYcJro5+IEBz0ODdvT/ZCt7zlz5+ gQmGy+LH2EyxxfCUsFF6jUa+HPdYSzNe6uLLF5cMg9/MV8nHDvD8BF+JVLcFHvYWDe96 jEHA== 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:cc; bh=7OYun6lkhZZFAXPf3GUVi0/l3b1/eArMRuwKgZLJ2jU=; b=rYDhNT8lR5JljlenijUex0vvQBENwgvEdu8ffEhANY7aEN2ZLJow9BduBp5ukoX5Oa bVPmd+BaezzPSZPHwAHt6tJXiXzxzD+6XtEbULFa5cHj6/fcu6zCy0N9EoGp5Baup07m iLi4K14BFx9jwvpvtqfclO0gpEcIPHB3GYP+vGq6GrLzo5nUpYX0ZwceRY/L8F2YnFPn caWG2QUZXO7BhJm2IEeiekhK0jS+VaCLGDRWZ+KTOL6BzdvXu7xx/bsuVbCHRPf5DtIM U4EjCRSOvGYKYDQTlBe5JY3mOjpnpxprOqcg/aIZCXYGoG+hz2RMqHwsxRhdLTho9HSK rvbA== X-Gm-Message-State: AGi0PuaUeOeAFv6pHiU/PesMcGmuDj5KCchZl1o94ZVE77/N3nycHtiw WbbBeV5E6LRGhgS8fr9yqT/A12e8PWYd0gh6buU= X-Google-Smtp-Source: APiQypKlKXIo/qzE12TgJfblVlIZiJvGbhWga9iMmRsnzGlU3Q2vZi8+JH8db4P8EJ9Rfoi6iIMz3z0dkiXlUPegJp4= X-Received: by 2002:a2e:9dda:: with SMTP id x26mr2722300ljj.199.1585423767649; Sat, 28 Mar 2020 12:29:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 28 Mar 2020 20:29:14 +0100 Message-ID: To: Ilija Tovilo Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000007d43d305a1ef3cba" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] switch expression From: arnold.adaniels.nl@gmail.com (Arnold Daniels) --0000000000007d43d305a1ef3cba Content-Type: text/plain; charset="UTF-8" Op za 28 mrt. 2020 13:40 schreef Ilija Tovilo : > Hi internals > > Apparently my previous emails were classified as junk (very > flattering). Hopefully that issue is fixed now. > > I'd like to move the RFC switch expression to "under discussion". It > tries to address some of the common issues with the switch statement > by introducing a new switch expression. > > https://wiki.php.net/rfc/switch_expression > > I'm looking forward to your constructive feedback! > > Ilija > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php A minor remark; `InvalidArgumentException` really isn't applicable. No function is called, so there are no arguments. You'd throw an `UnexpectedValueException`. However, operations don't ever throw exceptions, but throw an error instead. --0000000000007d43d305a1ef3cba--