Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110198 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5294 invoked from network); 17 May 2020 16:57:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 May 2020 16:57:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 004301804C2 for ; Sun, 17 May 2020 08:35:20 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS48854 94.231.96.0/20 X-Spam-Virus: No X-Envelope-From: Received: from smtp.simply.com (smtp.simply.com [94.231.106.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 17 May 2020 08:35:19 -0700 (PDT) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by smtp.simply.com (Simply.com) with ESMTPSA id 49Q5nL0j0Bz6352 for ; Sun, 17 May 2020 17:35:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=givoni.dk; s=unoeuro; t=1589729718; bh=3OOnb2JF4v9Y1mU1YDSSZC8Zd3VujXYf2V9AfM6NpUg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Gj4CaT/ZmqczDOl9NrM/7GNck3CL3k521baKCjfJ+V0+AluvzTnWuHEeA/DCDtXQd YoeEqFRgZmITk3XekAADe/kp+c6G7Ep3WsY0iMgc6GaeMQg/JcTsFZ3ZGgLatPyCqt BWNQS6Y/Uu9XQUMWrBKh1MkS4873Q9Q7tO6hgrb4= Received: by mail-wr1-f54.google.com with SMTP id y3so8937820wrt.1 for ; Sun, 17 May 2020 08:35:18 -0700 (PDT) X-Gm-Message-State: AOAM530esajTuXYQ7cupvA1obiWU8QnzuTPt/CiLx8cPFm7RnGQfD0eQ hWdYKiw9ysC3eIHGJnyYIIweaeZChxEMeuKi1BU= X-Google-Smtp-Source: ABdhPJx6cz8FiIuwwz1MqD9WWY6BPiBHa3qxvgXOs6hDHy28L6L34hgoO1Ofud+t+ast8dwvE5D0r7Ha1wZ/Tsmpu20= X-Received: by 2002:adf:cd83:: with SMTP id q3mr15384341wrj.187.1589729717700; Sun, 17 May 2020 08:35:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 17 May 2020 17:35:07 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Ilija Tovilo Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [DECLINED] match expression RFC From: jakob@givoni.dk (Jakob Givoni) On Sat, May 9, 2020 at 6:08 PM Ilija Tovilo wrote: > > I will take the next few days to think > about how to move forward. > Hi Ilija, Have you thought about what you'll do next? I think the part about introducing "match" as an alternative to hashmaps and nested ternaries is a no-brainer - there seemed to be pretty good support for that. Regarding an actual alternative to the horrible "switch", maybe we can introduce it using "case/when" like in SQL? If you're sure you're not going to pursue one of these options, maybe let us know, so someone else can give it a go based on your excellent work and while it's still fresh :-) Best, Jakob