Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110643 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 50478 invoked from network); 18 Jun 2020 05:32:49 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jun 2020 05:32:49 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 231541804C7 for ; Wed, 17 Jun 2020 21:18:37 -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-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.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 ; Wed, 17 Jun 2020 21:18:36 -0700 (PDT) Received: by mail-oi1-f179.google.com with SMTP id 25so3846977oiy.13 for ; Wed, 17 Jun 2020 21:18:36 -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=/X9hjITZNNp/MyIStQ7bQ4qwMukKYWklu3hQtZUO/yM=; b=jv4hnpZbIdAY1kCNhQIWc9Jtz7H3xJzx/Ppu1pa0fhqDSAiyQB7V99XYO+Q59N2AKf VNCFU64PPLo7UwJspMEipMvlBSIOpMixIddzjFG8OjgZ50YC7/MenfdykwabOPheqH67 h90WZy8+zF5am0bvDFaJ+fIeHGsH/NTXzZBTg6lxX3nmNpxGOUz+pelQ0nV7pQkjIQX5 iAK95pFjwNC6AMqbojSFMGa2K3PKHX97kWM1qcwSx6bRaUuO0iViUFMG5Fip/KgiEfE9 oktcNe+oEkIK1q2at06AfUWUqpOy52AxCDXkYXNVp0jfSSV1UvCzX/zFaB0D1war4l+O epdw== 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=/X9hjITZNNp/MyIStQ7bQ4qwMukKYWklu3hQtZUO/yM=; b=hiMqwiS2BxjVTZYCUlLC3bVsOm83HNHa6LJEEnL8IHTCez1uJRwBAQtLiDauXqHh+n kIeaVIlnGKmAjME4lohYTlhL+6krfAi2zCSFdzRyedpiLU/kCXOwi/8HwXNoCKQkAJ+W mL/48VTH01uADI9AKwJetpN9SYgLA7FH2C3VG8s7na+/rGhxaHPyEEP8Gg9Fxw3SK3nV rrYhSt4om/e291/kSxYfwhh5IvAnIyJtptc0dpWTKmApWsiHhC3PSBmIFonjL0vONNax vD0e//PVPIcelTkwFaoIOURaEjH4w8akLZa2s58L7LNYcusGMKZYIszCoTcrlRADu31w EDug== X-Gm-Message-State: AOAM532/9Q6bNTB5i7wPJh218d55vPkAELfBee96B6HC5RyIqxmlbTqq UEBFbGL+HB0mwHxZ+kiEc/pvNQNcAvjiyXNDcr9HeyzC X-Google-Smtp-Source: ABdhPJyGOBiFedaElZ1LwB7WzsyvB0eQbG+ezct4oYdzTHbhTk/FaRSe/6HmBNoZUpg525IpwOdOOpwPnkHJ/PxJXGA= X-Received: by 2002:a05:6808:7d1:: with SMTP id f17mr1564131oij.16.1592453914203; Wed, 17 Jun 2020 21:18:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 17 Jun 2020 23:18:23 -0500 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000e099e405a8541110" Subject: Re: [PHP-DEV] [RFC] Treat namespaced names as single token, relax reserved keyword restrictions From: tendoaki@gmail.com (Michael Morris) --000000000000e099e405a8541110 Content-Type: text/plain; charset="UTF-8" What other language allows this? None that I can think of. Do we want PHP doing something it's most closely related languages do not allow? Why don't they allow this? What problems are we creating by allowing this? I can imagine this would make autoloading functions and constants by namespace more complicated, but I'm not sure. On Tue, Jun 16, 2020 at 3:52 AM Nikita Popov wrote: > Hi internals, > > Inspired by the recent discussion on reserved keyword reservation, I'd like > to propose the following RFC: > > https://wiki.php.net/rfc/namespaced_names_as_token > > This RFC makes two related changes: Treat namespaced names as a single > token, which enables use of reserved keywords inside them. And remove > reserved keyword restrictions from various declarations. > > The RFC comes with a small backwards compatibility break related to names > that include whitespace, but will hopefully reduce the backwards > compatibility impact of future reserved keyword additions. > > Regards, > Nikita > --000000000000e099e405a8541110--