Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110646 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 75602 invoked from network); 18 Jun 2020 08:49:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jun 2020 08:49:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 468661804B7 for ; Thu, 18 Jun 2020 00:34:59 -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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, 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-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 ; Thu, 18 Jun 2020 00:34:58 -0700 (PDT) Received: by mail-lj1-f170.google.com with SMTP id s1so6050898ljo.0 for ; Thu, 18 Jun 2020 00:34:58 -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=YgY/7q80wpdHZufuqKsqCApJVHhLYZvgG+sWkWlpXow=; b=Cv4oJGOPUijmhJU6NMrm6QSpDbn2ebfQsppcsqfDpZD19svKjJckulnf+hjk4fUfXB iDeYW9xd85alztAw/HPDj/s9NCAKqMlJy7DJrm/+U3HpN0tYBNF8ewanVvtLDAzzDeWx juOjvBM4WEyUzCyU1FUCaeNcKtIHe7+2hBBCaXKISJYDQvUjxw80X6P8B2lOb3yr80sb SJ+A6EPY+xLc9kU5MesnLSzAjWWLTUH+LzU62gLSqfUr5Y5bF+khj+m7MHX12WpX5H/l uABj4TsOfzQw9SHnnLZpRm//Ec/7DysiZ2D2Xche7QLA28fHHqmO9BKA9ScnreTL7y+k +8hA== 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=YgY/7q80wpdHZufuqKsqCApJVHhLYZvgG+sWkWlpXow=; b=fBGMiTonw3Pq5BvJMO6H/bu7KQjTHj//3RXZ7wzvCNFEUC14hSaXsoc/qS1iqgjxQH qON4501KssyyD8ztitbz3jLVxLYEYhxuA+owmlFv8Qr8qO67hNT6fQaSEpFMDn6Th3tn Gi7wDYlbSbh16I1DUR4nAX0fozIKltb+9f+6KYIBa2w3XLGRE5b2w+vSw7vjp98DBTtc rbERDWJlXvHvvR/FGZGHFdP49yYdybvEM31bEFJrZpKkLUkBZlEkphpV0KAGJw25c/ZZ z0mvGgr8ewMx+55rMti9lTzENUdz0wpXcph/0ySmwXqokhA8GFUvD/B4Iq8TsPPzqgPN hKrQ== X-Gm-Message-State: AOAM531dUIld9rUSKm7FUaM8yncnm1ZEYf7nQ1fhn3U8+RlnuanA9yKx FbIaLuUy0lt1nCN/eq7qPImXd4lFiYbaILKXkMs= X-Google-Smtp-Source: ABdhPJxBBBZ0qXO6dnIVZ1KZiUl3Z0t05cdc/k37ULna3vYhggrBmVHMhU2Asi78nmRKNIAzKkzdQxLUh/tVMeeJiVI= X-Received: by 2002:a2e:8e64:: with SMTP id t4mr1696092ljk.414.1592465694113; Thu, 18 Jun 2020 00:34:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 18 Jun 2020 04:34:42 -0300 Message-ID: To: Michael Morris Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000003c64505a856d08f" Subject: Re: [PHP-DEV] [RFC] Treat namespaced names as single token, relax reserved keyword restrictions From: marcio.web2@gmail.com (Marcio Almada) --00000000000003c64505a856d08f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, 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? Most language implementations don't do that because we are all using parser generators to do the heavy lifting of parsing and these often force us to pretend our programming languages are context free, and we accept that for convenience. But most of the programming languages - C, C++, Python, Ruby, JS, PHP, SQL - are not really context-free. > What problems are we creating by allowing this? In that case, this RFC makes it unnecessary to soft reserve words like `enum` to avoid BC breaks during PHP8 lifetime. > I can imagine this would make autoloading functions and constants by > namespace more complicated, but I'm not sure. I don't see how this would be harder with this proposal being accepted. Ty, M=C3=A1rcio Almada --00000000000003c64505a856d08f--