Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111422 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46619 invoked from network); 10 Aug 2020 12:33:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Aug 2020 12:33:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F03E41804CD for ; Mon, 10 Aug 2020 04:32:19 -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.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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, 10 Aug 2020 04:32:19 -0700 (PDT) Received: by mail-wm1-f44.google.com with SMTP id q76so7983846wme.4 for ; Mon, 10 Aug 2020 04:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seld-be.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=5P3kHTVBAY886m/XRnvRDVBVUkgsL0yujddGnqcRcvk=; b=CZneL/qahXd9sMk8pqL6eZwCn8jGbjK3Y+zz59+89wUDXvwRdPtwdqUjjCtf32RAqe +RPo6x1o7d80F4m2HJsUnJPsqVWHS4AbS6L/f5LWavlZut5JE/8l5Z/Ej4kifaQY3YAs Btei1F59QYQYWzU99xh5xx8LB9ty6c073fNxDe88jMFmoxSjSrCXTYpraSOwuZYKpqNi y699lWcp7wdd9UKDmiSrcTv8RDQDcfgy9gZqitcs09q/uEDZHyH3P2pUpPCiZ6qGsANo rR30M6uLBHzU2eBmdrr5YXr4NYddshI/Cj8l72os38jK1L8/uCgGZLke9qZqkI6pj69Y A7Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=5P3kHTVBAY886m/XRnvRDVBVUkgsL0yujddGnqcRcvk=; b=qVePM3VrxkzpI20S6dGKCwthv3+Bj38O3JQnDCyB3Tnj7PURtp0ifFoJe/cfsVzTp4 9TNIFVSH8JPc3bZm9L66T4IAVRvZK4kDurn50Us920QkjSRb6DUT7bgTiRgfe9fD6FAj HJ5IpMKngZ5LCda3LEStzSyrP/UXkC+vqikYXB4anB2gCgFtPXGwWOxCPx8+jIz2aJuw KHSrGz1wtxfFl/8qG1CADUWR1wbobQndxPxNaTPoTJJzx+d+xfdMDru8oSH1aN5lsFHV 9RIusjCK7Ust8ih/0eOaW+DK3f5blH2BwsZGs+qqGFG5dDoSxFb5zXHdz4dnU7ep6p4L 7MgA== X-Gm-Message-State: AOAM5326c6D+R/6vwFmk+KLXmPQG4bgSm7NRcHfR4iwc5VLuuJmlHgOt nLpXgDzkX6+ygPTiX9OoVwYzb0QBbF0F+g== X-Google-Smtp-Source: ABdhPJzdNeBw80MQLmM9IBH1m3xODICVSLIX/LqFZnfoq4BnMclRJvR2pb5H0BP51/7lDarqKkIlQg== X-Received: by 2002:a1c:3985:: with SMTP id g127mr5781673wma.64.1597059134449; Mon, 10 Aug 2020 04:32:14 -0700 (PDT) Received: from ?IPv6:2a02:168:4b6e:0:307d:64c4:6037:b9ad? ([2a02:168:4b6e:0:307d:64c4:6037:b9ad]) by smtp.gmail.com with ESMTPSA id g18sm22112242wru.27.2020.08.10.04.32.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Aug 2020 04:32:13 -0700 (PDT) To: internals@lists.php.net References: Message-ID: <5c73b8d0-f477-83a0-4bd4-2fb8d11ad416@seld.be> Date: Mon, 10 Aug 2020 13:32:13 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change From: j.boggiano@seld.be (Jordi Boggiano) On 10/08/2020 10:41, Derick Rethans wrote: > I've just opened the vote to make sure we don't make a terrible mistake > with using the @@ syntax for attributes: > > https://wiki.php.net/rfc/shorter_attribute_syntax_change#voting > Here is a more detailed comparison of how this would look like in real use, adapted from some basic doctrine and symfony validation annotation I got somewhere: https://gist.github.com/Seldaek/b7a3bd28920c6cc181e67a829b13a81c I think something like this would belong in the RFC. I find that the grouping "feature" does not help that much, it's kinda hard to grasp what's going on. Proper syntax highlighting would surely help but still. You may argue it's comparing in terms of looks, but as others have said I find it hard to compare them in other terms as the pros/cons listed in the RFC have a very limited impact for the most part, so yeah I feel like looks and readability should be at least somewhat taken into account too. Best, Jordi