Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109696 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22330 invoked from network); 17 Apr 2020 18:44:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Apr 2020 18:44:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 178F218054C for ; Fri, 17 Apr 2020 10:14:46 -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-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) (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 ; Fri, 17 Apr 2020 10:14:45 -0700 (PDT) Received: by mail-il1-f171.google.com with SMTP id c17so2847724ilk.6 for ; Fri, 17 Apr 2020 10:14:45 -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=XVJyYgSjf1kC9rSp0iypwJZ2lsMfK/6YiWfVatSn/Kc=; b=E8UEpp0QKJ1c2zdZpFx6LpvY8O1SvqK1VU6/Ys4nC7omxOCShg9kA647B89Qd03wQg LUJbsH1jU+qUu1wnGCPUrm+75gutYFRv1oXV7BpPZGUz+GQdytDvvjcOOFgpeZL6v8mK VzbTXNa8oULLUDEqXkF09OF7TBNA8YqKwuA0lXKyQUH6LLsquSieTGSygg+5pcFNzxZ5 /3wCMZjLkXfP91EPYZbjasl369RB0kESIG9VVzS4y/UIwDH44juML9WggY2MWklLR6hd DPar/2Ag6KKbsI0KTWR6fs+hNxJG9jUGvsqtDuiTpMpguZn40J18pOo6h9I8m1axejkE yHfQ== 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=XVJyYgSjf1kC9rSp0iypwJZ2lsMfK/6YiWfVatSn/Kc=; b=R/1dlytnDDrSAjTet1lbMuGdvesHDycvVErHc5z1aUejkikLJ1TV3IfSBuXROw1hky TCVUnWCPtydtcUZCVLEs2RZg9wty8jaUjurNB4uLJqb5fv5qAV9N+b4PHi2U8t+SEGjz ZkEx7Y7VuBX7cIUHk6NeEm8QhtOnRxgCml7dawYKmNDwEjRKYlh8jr9YdiwE7GQNO2qh Gxdt/266wwvv0TTcBWOZZMNDeaJ4wokWwSHQP0dVu9XKci3QaGADvrVaR1QmsD2i38HZ /lTdxqcXl2v/tnYQHmarJMb3dmaOWPGTcmYIzQvixoBmIDnn6bU+D62EIaAHWGVsSQdG 3a6w== X-Gm-Message-State: AGi0PuYAzhfZ8I/HQQITc2zCv4cZvbGJjKksYJ/T2ZUVdL3fuZXE/vNx CCVQPXH1hdBp5cIwNPmUj1GaObtbE6NUv6TjCLIBOA== X-Google-Smtp-Source: APiQypK3MY3/l3kwDzXGgg/ChMaeElPCQ5w2RkcIebgmQ2pnt07A4YwaXHQ2srvc9vrv5TacD3Lu1wO3KrNR2JVumgw= X-Received: by 2002:a05:6e02:5cb:: with SMTP id l11mr4146197ils.236.1587143684736; Fri, 17 Apr 2020 10:14:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 17 Apr 2020 18:14:32 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="000000000000894ea005a37faf41" Subject: Re: [PHP-DEV] Re: [RFC] Attributes v2 From: rowan.collins@gmail.com (Rowan Tommins) --000000000000894ea005a37faf41 Content-Type: text/plain; charset="UTF-8" On Fri, 17 Apr 2020 at 17:11, Theodore Brown wrote: > Consider this example using the shift left/right token syntax: > > ```php > <> 1, 4 << 1)>><> 1, 4 << 1)>> > function foo() {} > ``` > > To me the same thing using the T_ATTRIBUTE syntax is far more readable: > > ```php > @:BitShiftExample(4 >> 1, 4 << 1) > @:OtherAttribute(4 >> 1, 4 << 1) > function foo() {} > ``` > This is an interesting point, but how often are users likely to write anything like that? Perhaps part of the reason I'm less bothered by the angle-bracket syntax than others is that I can count the number of times I've used bit shifts on the fingers of one hand, so I don't read it as "reusing the left/right shift token", I read it as "enclosed in double angle brackets". Regards, -- Rowan Tommins [IMSoP] --000000000000894ea005a37faf41--