[prev in list] [next in list] [prev in thread] [next in thread]
List: php-internals
Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_RFC_=5BDiscussion=5D=3A_Mark?= =?US-ASCII?Q?ing_overridden_methods_
From: Rowan Tommins <rowan.collins () gmail ! com>
Date: 2023-05-27 21:10:15
Message-ID: 13955358-2538-4DB5-BD8A-506AFC6F2D35 () gmail ! com
[Download RAW message or body]
On 27 May 2023 11:40:44 BST, Dan Ackroyd <Danack@basereality.com> wrote:
> On Mon, 22 May 2023 at 22:32, David Gebler <davidgebler@gmail.com> wrote:
> >
> > either you use static analysis tools as part of your PHP workflow, because
> > you care about that stuff, or you don't.
>
> I these words imply an unpleasant connotation; that people who don't
> use static analysis tools are bad people who don't care about their
> code.
That's not what was being said at all, as is clear a couple of sentences later:
> If you don't habitually use these tools already, you're probably not going to be \
> annotating your code with #[Override] anyway.
The claim being made was not about good or bad programmers, or whether they *deserve* \
the benefit of the change; it was about whether it's likely that they'll *receive* \
the benefit of the change.
To rephrase, the proposal is for the engine to only warn about code where the \
attribute is present, not where it's absent, so for a user to benefit they have to \
edit their code to include it. If they edit their code and then run a static \
analyser, they don't need the attribute to be built into the engine; if they don't \
add it, the feature has zero benefit to them.
So the argument is that the key estimate for whether to include it in the engine is \
how many users will add the attribute, but not run a static analysis tool. If that \
number is very low, adding it to the engine has a very low value.
Regards,
--
Rowan Tommins
[IMSoP]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic