Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110604 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 87398 invoked from network); 16 Jun 2020 19:33:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Jun 2020 19:33:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0E3CF18055D for ; Tue, 16 Jun 2020 11:18:34 -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-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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:18:33 -0700 (PDT) Received: by mail-lf1-f42.google.com with SMTP id c12so12313049lfc.10 for ; Tue, 16 Jun 2020 11:18:33 -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=seK6WrVV4XO2HtiNGgQqWdRdUDONhDLXo0P/gvUGT40=; b=p/OsF4mYz413IDHc4+FMYuRhlQtDHHvYDiRqUL3ZMiU94AIEmUk9Tf7CVfvkqnvrtW u5NPyxL7YEuzZBLvavikhlpUU5ySouNgvZQojRgjG739FlRp/H28n0ujBVcenRDBI419 XNNgwlwdEIcK/jF5d7acu622Iqna6hZ1FH3wLDB9V05DaoYzt4BeonVILm98cJ2nTVtp dIcOMuzdDDQb26KELwuFFPo/0JaWKsDVddOuVNfKpgWEsbRDDzHQdgqAAL1pp8TXl9DC 4fI5sQd6vjGh0zGbkab4AyaqX45h2OSyfrFuYoopoKgsCv12wJcRGyXKNCwurYmismfm Hk1w== 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=seK6WrVV4XO2HtiNGgQqWdRdUDONhDLXo0P/gvUGT40=; b=OSEo2bk7ln8O+b2WCBQjbBj2BBbg54P3g4OdGKrd+RLmC0Thk8iS7CzioJw5pt0ZMx gmop698PeaE4O8yNJXFrEFK6OqUzLAqhwnmP0qPa5IcaNkTTSnp+IAaHmV3WwUeD8+xB RMkPUHt5F3pTPL0GATCGOBa/3vraVGb5ikbM7wOSby5gz4hxZiVrNEZNJq7dUZfImGwI RB0vYbXxVoCcHBSj6p1waMHtzvdb0Fu3D1F0Rcm5BXJo1UNIwqjMzn89fx6Fo5mGwHQG 7ZjsbJ1CDyCG9jsb89g8wHUbD+fBaTes0G2ze230hc9aJyJfAL0Weqo+tFi10RTK9Xo+ xHdA== X-Gm-Message-State: AOAM533pyyy6uWzz5Sonje++Kl2996yJYv0HLfEESgJH9AJoVDiZX3vh g86ytUztGiGCrJvGuYFtPs6cjeykjZmHFlnN5o8= X-Google-Smtp-Source: ABdhPJw9A2IqmvZ81VEseY3OnRyDc7j6GkEdBw8Adcfx2DSoA6bW3f9K7myruzsr+SRk8cRKaZgoLvol9s3ek3UlXfM= X-Received: by 2002:ac2:5443:: with SMTP id d3mr1396785lfn.121.1592331509704; Tue, 16 Jun 2020 11:18:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 16 Jun 2020 15:18:17 -0300 Message-ID: To: Theodore Brown Cc: internals Content-Type: multipart/alternative; boundary="000000000000002da205a83792a7" Subject: Re: [PHP-DEV] Re: [RFC] Shorter attribute syntax From: marcio.web2@gmail.com (Marcio Almada) --000000000000002da205a83792a7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, > > 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. > > Just a heads up that the two week minimum discussion period expires > tomorrow, and I'm planning to open voting soon. > > Hi! Thanks for the notification. I'll probably vote for the `@@` syntax for three reasons: - It feels similar with at least other 5 or 6 languages that choose `@` as their attribute sigil; - The lack of closing brackets make it less verbose, both on nesting and non nesting cases; - BC breaking the stacking of the error suppression operator as in `@@@@some_call()` actually makes some sense. AFAIK there was no reason to allow it, and maybe it was just an implementation oversight? So if the new proposal comes with this nice "fix" attached, at least it feels like a fix to me, it's two good changes on the same package. If not I'd propose to disallow `@@@...` combos myself separately if there is time to do so. > Best regards, > Theodore > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > Thank you for your work. Cheers, M=C3=A1rcio --000000000000002da205a83792a7--