Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110605 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 90201 invoked from network); 16 Jun 2020 19:47:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Jun 2020 19:47:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A8FEB180549 for ; Tue, 16 Jun 2020 11:32: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_H3,RCVD_IN_MSPIKE_WL,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-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.46]) (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 ; Tue, 16 Jun 2020 11:32:46 -0700 (PDT) Received: by mail-oo1-f46.google.com with SMTP id z145so4277544ooa.13 for ; Tue, 16 Jun 2020 11:32:46 -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=MNn8CJMxncK6ZjHEy+ZqPsIEpFxpbnygSeTjJgdKHjA=; b=OLzt+LC66ZRqHclyL/LJ7eFZDjakT24smR8ON6Vtn2iri3fflEy0R8V5N0cwoIsqbi 3KefELmtn3G0N5q1NmLAsuRKqpZ08O7eVzCLK6xD6NmsCrmRs2RV8oJfUm1XEDa6Bd1z fFXSWWLg95Z3qhPm7E8C8jmYjQK5QgBzxniNhBLitU1dMJpv+WSFg6xHa+9pIBTba49/ VuqNuB812cZpqzvmB77CnrtaSO9wZOS2XdJenMoEjQxFpzryNXpnAGqLNbsM2lsRBjTc Bk1O2gPsQgnRsiB9ofPSlsWi2LrYfoNWISVpcomqtI29rOFuJe/P9axMzE0FqBmRLmWS rQ3w== 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=MNn8CJMxncK6ZjHEy+ZqPsIEpFxpbnygSeTjJgdKHjA=; b=U1Zc5uf7u7NFRO8MmXfRAjVXYPOt7EzHXFKXOnaRDpn+sOU8CmPZwAJZlzKcpc0LHd a15eob6YubJ6632XhLoMrOvl+fwCJ5B0XBMwhgPySF4jNPYpdmocvvrHIi+SnfX9TSW4 suPgFx0Om5EMOD5skFy9e3yGuU6LbCr0iOauy+KlDMTZhpfLkCnDpDfBwj8svToidcdc Mkf6uTxfFmdCJnE/7LwqNrF1tUUiH53sU1RHscylqQM6NNLZeDp2JMZFjRl+gfwsWx4E vtx4xTp0DIJM/9UzUq6CT++8boFcn/TR2sWVqLshPB/VUF6uzG4UZG/lk/oDhs4JRUCb HLtQ== X-Gm-Message-State: AOAM53251+PUF8JX4nXr7YDnL7kQGXTysr6iaS8AD/emcM04+lfuZyFr x0JC6nbuecbbGlw+VH/E4SRiaJ/Ha6YfDzDm5nE= X-Google-Smtp-Source: ABdhPJyIZNdjQiMcyWREpgZ8kuQYK6T+lXxf0YTohNe3br/topuk2hmi+igOCujBbOwEb1vFvGQPRDZV9ayNJxTfF3A= X-Received: by 2002:a4a:4904:: with SMTP id z4mr3498963ooa.63.1592332364552; Tue, 16 Jun 2020 11:32:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 16 Jun 2020 20:32:33 +0200 Message-ID: To: Theodore Brown Cc: internals Content-Type: multipart/alternative; boundary="000000000000f41d5205a837c4ea" Subject: Re: [PHP-DEV] Re: [RFC] Shorter attribute syntax From: michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?=) --000000000000f41d5205a837c4ea Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Theodore, wt., 16 cze 2020 o 18:57 Theodore Brown napisa=C5= =82(a): > On Wed, June 3, 2020 at 6:54 PM Theodore Brown wrote: > > > Hi internals, > > > > I discussed the syntax for attributes further with Benjamin, Martin, > > and several other internals developers off-list, and with their > > feedback completed an RFC proposing to use the shorter `@@` syntax > > instead of `<<>>` for attributes in PHP 8. > > > > https://wiki.php.net/rfc/shorter_attribute_syntax > > > > The goal is not to bikeshed over subjective syntax preferences, > > but to address several concrete shortcomings related to verbosity, > > nested attributes, confusion with generics and other tokens, and > > dissimilarity to other common languages. > Thanks for your work. I'm gonna take a vote on Rust syntax #[Attr] cause it's more than similar it's a copy of syntax which in Rust has other few extensions which we might consider in a future like for instance, a file scoped annotations. It has the benefit of reusing the same syntax as another language and allows the code works with both PHP 7 and PHP 8 which IMO is a huge benefit for a smooth migration. Cheers, Micha=C5=82 Marcin Brzuchalski --000000000000f41d5205a837c4ea--