Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111038 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55555 invoked from network); 16 Jul 2020 09:11:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Jul 2020 09:11:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A3A761804A7 for ; Thu, 16 Jul 2020 01:04:38 -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-Virus: No X-Envelope-From: Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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, 16 Jul 2020 01:04:38 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id b11so395111lfe.10 for ; Thu, 16 Jul 2020 01:04:37 -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=MwOEQPEX4KEP9KPektAScAXaE2DUwLQIII5zfBZyJ98=; b=f4h+VNt1t1son2g0EoWzA7TPOAzsq/pqDH/0Mlu+LKe3LjLUoFQvm05MQCbiD7U03J Bx2mLp/0EOreo3S1loL/5ySuz9DEf6MJrNq3hoDpilpRkoFOq+7cfWJwVBtBTmJ3yWUg 3Z2w5bWJPaOTz9wqUkFvNyPLMjBuV73vPir8asoe6Jc7x97d/eSUytA8B0qN4g36loZw NJyzKxXmxYgHFL+UowUHnkT3lHX3AaWB+7DbuVC014k5ZM+Z4tMQ370rwHC8N2UKcE4+ GcdYOLkOZm7TqVD07nZJkeMmadkn9Smh3dRp8HP869vJtnmZoV7voYVhBQ4YME2NeNGC cZ+g== 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=MwOEQPEX4KEP9KPektAScAXaE2DUwLQIII5zfBZyJ98=; b=i1DleXax1EjBJs/DxzZDPk4FGNlD7624tUKkWAAOVY1UTipQKjIwXSYIOo3q/Fd4X2 62+smBxKn7NeG9ZZG9bZxRoXo0Kmgk95eQknnZQfR1mLR0BSv2+uUBxeQ/Uz035RM3Jr K3LrHfr6uVOIZKCAyilFmOsvKqVhhEWG7iVHb90q6mr1ESHylgODuRK9+o5gzl4F/UZh 1VOkv1v2b16Yw5sUQccwxkaqh+dldadMbvblI6EFUjEsmzqsOqGBkxw6FObno8r7Ie04 Cz0sXu2XpyQR518m1SfXNt+WCtfz5zDQhqX5DoPIQ+NQ5aP/Zof7Snoz0gmS5x4FGYRY 4PMQ== X-Gm-Message-State: AOAM5313ly8GyhYipf9LO66rDYvPNzWRpdQGTZhDA4aE1RKuHYDtDsPg ed5/G7QOUjilTO3lQKcrxL8qjzVaSsDoetOKlB4= X-Google-Smtp-Source: ABdhPJxqhPoEnKaXUz9XYavpzqQ8/pUULPpCJ3wS2Alb744+OwuedecmDvo3UyyM+JUMhNpVL43pq3lxv8uaK1/KmFM= X-Received: by 2002:a19:2388:: with SMTP id j130mr885202lfj.190.1594886676437; Thu, 16 Jul 2020 01:04:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 16 Jul 2020 10:04:20 +0200 Message-ID: To: tyson andre Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000ce5f9505aa8a7dee" Subject: Re: [PHP-DEV] Re: [RFC] Treat namespaced names as single token, relax reserved keyword restrictions From: nikita.ppv@gmail.com (Nikita Popov) --000000000000ce5f9505aa8a7dee Content-Type: text/plain; charset="UTF-8" On Thu, Jul 16, 2020 at 3:40 AM tyson andre wrote: > > > I have reduced the scope of this RFC to handle just the issue of > > > namespaced names, without touching any other reserved keyword > restrictions. > > > As the discussion shows, those are trickier, with more cases of > perceived > > > ambiguity that may need to be mitigated. > > > > > > As this proposal is now a prerequisite for > > > https://wiki.php.net/rfc/shorter_attribute_syntax, I have heard from a > > > disturbing number of people that they might vote against this > proposal, not > > > because they disagree with it, but because that would prevent the > adoption > > > of the @@ attribute syntax. I'm not sure what to do about that... > > > > > > > Heads up: I plan to open voting on this proposal tomorrow, unless there > is > > further feedback. > > One possibility would be to split it up into two separate RFCs: > (This would probably be too short notice, and this isn't similar to any > proposal in the past) > > 1. An Yes/No RFC requiring a 2/3 majority for accepting the amended `@@` > attribute syntax with the restriction the original RFC proposed (no > whitespace&reserved words. > > I'd think that very few proponents of `@@` had plans to mix whitespace > with backslashes in attributes when reading that RFC, and it's extremely > similar to the original attribute syntax change RFC. > While I don't think anyone had plans to mix whitespace, this is indicative of a larger issue. While I'm one of the people who voted for @@ as my first choice before, I wouldn't do so now (even with this RFC accepted). This issue made me realize that there is more at stake here than just "which syntax is prettier?" and choices that have a "closing tag" are technically more favorable, especially if we consider future extensions of the attribute system that may introduce additional ambiguities (e.g., Rust allows placing attributes pretty much everywhere in code -- how sure are we that there will be no unanticipated ambiguities?) Probably the most unambiguous treatment here would be to simply rerun the vote on the short attribute syntax after this RFC is decided one way or another, but that would be quite a bit of process overhead, for what is a small issue to most people. > 2. A yes/no RFC for this RFC to affect everything except the choice of > attribute syntax. > (i.e. if 2 passes but not 1, we'd end up using `<>` in > 8.0 and forbidding `<>`) > Just to be clear, the whitespace issue affects only the @@ syntax, not the <<>> or #[] syntaxes. Nikita Still, my proposal seems like a dissatisfying one. > > Allowing future 3+-way votes to be re-voted once due to unexpected > implementation concerns > (when the original authors are among the authors of the amendment) > with a 50% majority requirement (instead of 2/3) might help in the future, > but would probably entail its own process vote for an extremely > rare/narrow RFC situation. > That wouldn't help with this RFC due to the feature freeze, > and I think that situation's too rare to actually work out details and > actually propose that amendment. > > P.S. I'm in favor of removing whitespace between tokens of names. > > - Tyson --000000000000ce5f9505aa8a7dee--