Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111599 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 39974 invoked from network); 17 Aug 2020 23:03:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Aug 2020 23:03:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 96F611804C0 for ; Mon, 17 Aug 2020 15:04:09 -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-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) (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 ; Mon, 17 Aug 2020 15:04:09 -0700 (PDT) Received: by mail-lf1-f67.google.com with SMTP id 140so9148796lfi.5 for ; Mon, 17 Aug 2020 15:04:09 -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=dIxnehealxwDFBos2YDsn7L+GFRBv4wS+DRf5H5ug/A=; b=lT1Da8wjnyh9YbS+24pYApuW8EV1yHvIKiOZB+q0gT2BT7GAUfkDyNm1F1dqI09VlA 8LHZ9z6fmuRYt/zkwwLIIxYH/dlWgGPW4UVxoITQTX0J1olh14iVeBthIzPCE0H/zT94 6mXNguG8Q9MPhYg6vz4BQz9hqYEYKguZVQ7O183A46cn5OKwS+cYHFvSOKE9Fp5FA5ZP 01VeAJrvnLzaNAXyDr0jxCLtt6sLJP980FWLTiZQP1/tdT3c4eiBc1hHspISqHF3kz8i 1wm0R+Hw6fCvIHJzJN5nFlumJVZmXoUsJIUBG1t7S4aB9VgANsoYX31L6kdUeSErh/+h GJZg== 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=dIxnehealxwDFBos2YDsn7L+GFRBv4wS+DRf5H5ug/A=; b=tgDycN8RuLLd4ORk9OIN6asPP1Q85Em3e03WD9xrTLlDml3yCYgKxbZoJQRCjLLVQc ld5jEdn+npk542xGcYAJkoEdkBrM2/o9LzNtj8uV8932dFqmBbvq03bDc5VV4Q3v6E2C pDUUAOjo5yEULt//n4tMH1bGdSwS8gV7tTYsMxqZH+w6UfPs7yrn4e3N/0GdOVQKNN26 rlTyYt/DLlXWonUnBvUOInslIc05/xHnByr0YVEthdGXRzQF2VnU8FLIGC7P6yzIdCBI j5xNOFEIXQXM+yJFsy/cI3Dj3dhVdCpiYyqiaX2RRxO7mtihqkFIeuxE0TS5Wz0igHOT UP+w== X-Gm-Message-State: AOAM533//3fJN/FyEV78ylBumrnz1HMvtotJcYjhWbiPPSS6hSK90iLd IzFLqAU3EF3UmKY62TauMOlKrZBRy/FhON1BwYk= X-Google-Smtp-Source: ABdhPJzV2W7NpyfLIZRAmSytqEFtfCJ2EBDzrmKpyiAWEuobuUMVhib8YemZkWDGLbS7IeNsz2NFF/uUYPhivjv3TJM= X-Received: by 2002:a19:cb51:: with SMTP id b78mr8258856lfg.130.1597701845274; Mon, 17 Aug 2020 15:04:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 18 Aug 2020 01:03:52 +0300 Message-ID: To: Jakob Givoni Cc: Benjamin Eberlei , Derick Rethans , PHP Developers Mailing List Content-Type: multipart/alternative; boundary="000000000000f1d4d105ad19f286" Subject: Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2 From: benas.molis.iml@gmail.com (Benas IML) --000000000000f1d4d105ad19f286 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Aug 18, 2020, 12:56 AM Jakob Givoni wrote: > On Sun, Aug 16, 2020 at 11:36 AM Benjamin Eberlei > wrote: > > > > We have updated the RFC with all (hopefully) of the feedback from this > > discussion: > > > > https://wiki.php.net/rfc/shorter_attribute_syntax_change > > > > Most notable changes are: > > - A new section with several subsections on the benefits of a closing > > delimiter / enclosing syntax. > > - A section on grouping pro/cons > > - Inclusion of @: as per Theodores request > > > > We are looking for further feedback from the community. > > > > From the updated RFC: > > > There are multiple reasons why we believe the previous vote should be > revisited: > > Ok, bring it on! > > > At the point of the vote for @@, it was not clear that the syntax > required the namespace token RFC to be viable. > > While this is not a problem anymore, the @@ syntax might not have come > out on top if this information was known beforehand. > > If anything, this is an argument AGAINST this RFC. A "bad" decision > was taken. The problem with it was fixed. No need to change anything. > The argument comes across as disingenuous, I'm afraid. > And then boo-yah, 6 months later we want to implement a cool new feature to attributes (a lot of examples were said before, ain't repeating myself) but we can't :(( because there is no ending delimiter and thus, we will run into parsing issues. > Moving on... > > > The #[] syntax provides the benefit of forward compatibility, but this > also introduces some potential problems for PHP 7 code. > > An alternative syntax @[] was suggested to eleviate these problems whic= h > was not previously voted on. > > Ok, let's analyze the logic here as well: #[] lost the vote. #[] would > have had some problems. Are there any What problems? Besides the BC breaks that all of the syntaxes (except `<<...>>`) have, there are no problems. syntaxes we still haven't voted > on? Yes! > Come on... > > And lastly... > > > We argue why we should strongly favor a syntax with closing delimiter t= o > keep consistency with other parts > > of the language and propose to use #[], @[], or the original << =E2=80= =A6 >> > instead. > > This is the only part that contains logically valid arguments, albeit > most are subjective and speculative. Which is not to say it's not > worth voting on them. > But looking for actual facts, I only came across only this little cutie: > > For VIM users, the % operation to jump between opening and closing part > of declaration that would automatically work with [ and ]. > I fully expect all 3 VIM users to vote in favor of this RFC ;-) > > Ok, enough of my sarcasm - I only wish you'd put your strongest > arguments first and focused on quality over quantity. > I wish someone actually gave reasonable arguments as to why `@@` is better. Because a) no one cares if we have to type 2 or 3 characters b) `@@` does not ensure 100% safe future c) it does not decrease complexity in any way. > - Jakob > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000f1d4d105ad19f286--