Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111482 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 99879 invoked from network); 11 Aug 2020 18:01:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Aug 2020 18:01:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 62D9E180511 for ; Tue, 11 Aug 2020 10:00:45 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, 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 mout.gmx.net (mout.gmx.net [212.227.15.18]) (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, 11 Aug 2020 10:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1597165243; bh=JYljKQxiruP3KUoMQ5g0wFXiG5+uaHfyo4emWKCh73g=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=b9cJNiXdq11QEo4wz0IPUftLM03ka8tIG+1XFcyr5TyKa1emgApN62ev75W3vwr/3 6B7q7KNe3QRHGM3BLEqkHQea+m7wA3HKYSq0l+RlYQ+x9EOFj/eVGhjNgjkSSbTGg/ ofcpcjnnJHSnn2aKcZQoFTG5Uab9lqV9LiCo+ILs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.120] ([24.134.51.41]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N8ob6-1kjWlI3C3a-015uZg for ; Tue, 11 Aug 2020 19:00:43 +0200 To: internals@lists.php.net References: <59019606-a3fd-3c19-e962-a847689244a9@gmx.net> Message-ID: <845caae0-0920-1f0a-8acf-e7ced38d4afb@gmx.net> Date: Tue, 11 Aug 2020 19:00:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; 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: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:kynRYinXt+GtJiHeZ1wXjdq3OBCwjoVZl4lnh55qULOOUT4zUdn VVE7PuPsyw6F25sf7NrsY6eNbs4WCbwtcit2GnUTN6SxxMTrJUq3J+357xZEql66g5dg8UQ eMfYZta0pVwTYwz1dizovjcgCdXTJW5t/SutAzes5hOMP2C7yVgzKTTssV6PkXr124U/lif yC8aWmrFmNmC/XVCyG22A== X-UI-Out-Filterresults: notjunk:1;V03:K0:ntdhrIuz9vQ=:gVLXx/Dd9moMpzJbenkoHp 6aMFibyBiYaWPe8TYiCPRlxgT6PAreqvP9Z++rkid+SC6j/32uI3AuwGZekX6pkh4BtI1VqMs gMHT1SDQi0citA/ariw7FqpXf8jw3NZ8nTHKi4qPcw8AkGm6lrDkcdot+8K/SNxkRE2qC6UiB LPo8zi7z6XwQl5V0ddMZpyjxoyHCvIUfA8Fcr+oDaumY+AipU6g9IeWuKJMEQF1zdseLC4q8R 5XAI40nPINZjzAtrkI0+zbDNVwY2SSPn6+GyqcBexcf2mraXQiQQ6SKWz+zKVThiwz0vhCGmX s9bBPz6Qd1jJ7viwp6gxyYx1kVapmRCapeYbKBLQr2/gXtV08NNpsOFLJRyp2kOF3Qcuf62F7 Rwjro7gWarLZNhHZKKK0Zwg0JGWNbbx4tgkJFYOIOREqoBN4xZwdZF8JQzoMoMlG9DWWhEp8d C3nzaX8egXXwHN5vXkvRsJ5TwplNvubtboAu5V7DgFfUg1JgtlpR0HxwfgiNRpa/v1J9j9lhA g4UUDgQIdsS+ZRz77ZZ9D4tbooT3qcg69dr3PfDRRfJI7ikgOby4RZmBZui0L+m6YW9l7KUJX l8N7eABtM2w1MXC68PwvGhFGjPXKzcOcnkdGWjIONs5e/r444ZcXz+fKIeqYZ9PFTlnCWuv2i ezcGoEIp6QyJeQM/6Pgo0cC5YwkqhXT7qS6rGViDHu40ml5M1JFsnGR/LSVRx0Arnj9tVDl56 qFKYq0V/YuHB16tsk0dD1yQBLradT6Uc9nBC6MfhJE/XVF1bHPfnDerrQODhJV6NGtbpudUMR V3QkWlOojzEU9MG8GuowumA1HLmAOnl7X33F3hqQwL3BAnXJh23Rjtv5di0kp69FbuSW5C9Wb 0wguiwI4359ilzsT1YtDd2ZGjRcdlRZrRWcJQ660bTwVlnWuKgw5a3RJkB0HKQ/ZYMX961xfy AOQGL/oPIsfoYJCF4Aj5ydNJ+GqcK+H4ii+EBPdx1+A5N6kqXmnQytfi2knQAeLGNciMunERN JQiuBk8DlFqLQH1ZS2d1xgebhwrnn84tuXIWaiRZCS8HZGYqFlXsOsxSXleg4IWkz6fK1EgyN 7tdfDCBx7s/Qu21Ax3y8GoTv3pG8bmA1EMERBn3dBXZciTppIlClNZZlMNYo3l/6KBdcjD6tx S3Qjnvv8AakQtyohfnJGDWdRtMQU/MS2Eq/khBt5lgyNWbolLArmcaFul+g0W6u8oX2o7Dnss ccv8gyxRnuZIQneDxRYK8LOONzWINOSyrAT5Aww== Subject: Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change From: a.leathley@gmx.net (Andreas Leathley) On 11.08.20 18:38, Sara Golemon wrote: > The perf penalty on 7 and earlier would probably be similar to existing > state of the world. > Parsing a docblock is easier to fetch from the runtime (as we actually > store it), but docblocks contain more than just annotations, so some plu= s > some minus. > PHP 8+ performance on theses would certainly be between though, and that= 's > an extra carrot to push users to upgrade. If annotations can't be writt= en > until after users upgrade, then that carrot vanishes. If this is something that would realistically happen, I feel this would have needed more explanation in an RFC and maybe some small tests to demonstrate feasability, then it would be a big argument. I read through all the RFCs, but only realized the meaning of this argument now, with some more context. If the Doctrine Annotations library would support a syntax with # for pre-PHP-8 and it would be fast enough, then this argument would be more convincing to me than any of the others together. And it would not need to be #[], it could be any syntax that starts with # - it could also be #@, which definitely seems weird at first, but seems much less likely to occur in code than #[ and would be more similar to current annotations and Javascript syntax. Or it could be something completely different, like #~, which I cannot imagine ever comes up in actual code. Because Rust using the #[] syntax does not seem like an advantage, as Rust syntax in general looks completely different compared to PHP.