Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109903 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11886 invoked from network); 29 Apr 2020 08:08:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Apr 2020 08:08:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9396A1804DD for ; Tue, 28 Apr 2020 23:41: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,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-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (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, 28 Apr 2020 23:41:19 -0700 (PDT) Received: by mail-yb1-f179.google.com with SMTP id t9so700657ybo.8 for ; Tue, 28 Apr 2020 23:41:19 -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; bh=2HyBC/e9Mi37JKjgKu4/G2Lz7KRoYDbdaGQbhgEvdZY=; b=NIQDrtLWUqMJjM+ZQ92XzOuoxWsSNCTRIPs0gIxPZd4+avUEs2RFB8tlW/u8HW4QSz ehfYJFKbLAXVLnM8Pn+lWOd9XsNmaWbfoH23L33RiLGhKa5ChenFI5UbCTl5y0MXWJa+ w0ezemWOFsu8RM/LphUdsHqYcdcY9XynQa8JTnuOGGSFMXUtNVIyNPWToDhtD1DWV2BA eXnJvQ8iYeU7/fHIy+zn0eP4gx2rRu+QUqxPIlCecYPXNww/0HIc79kAhZ+b5PO4NwUu QaOYXf1qHJzkfq6nscvRbNKBlZzzv3N9oPOcruSnIrI3vncI/JmDQmlCq210iLi6fUGA i4/A== 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; bh=2HyBC/e9Mi37JKjgKu4/G2Lz7KRoYDbdaGQbhgEvdZY=; b=Q/GB4AjZA09fEvILDYuLDx1i8tdUU/dloeSww8DbY43pYMbmtXt04j1p+01DPZIS0Z CQruToqkrkBY9VK0EuJThyFyqbKDmvTjHWqJ9x/JTLhnTzyVKx/nfwcsD2RxbEitnoHA F71Eae4nQ+s3sMpBPNduwAturWAizFVrB+MoyN8C5f5rZq+zigpz3nvEGtH9jMJUVOSa HvSq7w+v/EBIKhso2k6xTbAKUJ5H4hAKVagWpO31+I/nCkcaSS/qywmsypEWSR+cd/gu INSd/T+McAxJtOb9Vtl4TQao7x3UYVn4D9Sxt6+pKe650yAIqSm2N8QCkbUla2AYZ/c+ weBw== X-Gm-Message-State: AGi0Pua5KOSXrK2XMeAvf9dJbpDhQ51E/yG0HV55bVRYC4DgEPfAKmMO 7NI5RLT1wFh9ldoCwoP+62Q3LShvtl9MwHjwarnUJl6+ X-Google-Smtp-Source: APiQypLFT1RkdY7/uyTgYodSPMdlxgNinfjBQQAonY4Ec+B2+VotjwIwgRlIeNK+jD8bLJsQaDUBDYnJg4s7ql5lb04= X-Received: by 2002:a25:c697:: with SMTP id k145mr46924421ybf.2.1588142479060; Tue, 28 Apr 2020 23:41:19 -0700 (PDT) MIME-Version: 1.0 References: <5ea6e4b0.1c69fb81.cf3ee.2bbfSMTPIN_ADDED_MISSING@mx.google.com> <969c6150-a084-48c0-ae8f-b8043dce321d@www.fastmail.com> In-Reply-To: Date: Wed, 29 Apr 2020 08:41:07 +0200 Message-ID: To: php internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [VOTE] match expression From: tovilo.ilija@gmail.com (Ilija Tovilo) > Or for that matter... is anyone actually using that syntax in the wild, or is it hypothetical? It's quite common in C (you can't declare variables directly in a switch case) so I'd guess it would be used at least by some people in PHP. The worst part is that your code wouldn't throw, it would just start behaving differently. Looking at grep.app you'll find quite a few of them. https://grep.app/search?q=%3A%20%7B&filter[lang][0]=PHP (Note that searching with regex won't work as that only shows a very small subset of results.) Ilija