Re: [RFC] [Discussion] #[\Deprecated] attribute again v1.3
| From: | Stephen Reay | Date: | Fri, 26 Apr 2024 12:42:29 +0000 |
| Subject: | Re: [RFC] [Discussion] #[\Deprecated] attribute again v1.3 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-123217@lists.php.net to get a copy of this message | ||
Sent from my iPhone
> On 26 Apr 2024, at 22:06, Rowan Tommins [IMSoP] <imsop.php@rwec.co.uk> wrote:
>
>
>
>> On 26 April 2024 09:40:57 BST, Mike Schinkel <mike@newclarity.net> wrote:
>>
>> Given a lack of agreed definition for 'since' it appears you are using narrow
>> assumptions about the meaning of 'since' that led you to view 'since' as
>> useless.
>
> I can't see any ambiguity in the definition: "This function has been deprecated since
> version 7.2" seems a straightforward English sentence, meaning that before 7.2 it wasn't
> deprecated, and from that version onward it is.
>
> If there's some alternative reading of it, it's not that I'm assuming it
> doesn't apply, it's that I'm completely unaware of what it might be.
>
> Regards,
> Rowan Tommins
> [IMSoP]
>
I'd even go so far as to suggest that "since" is so commonly understood that we
don't need the "This function has been " and "version " parts, and could
simply write:
#[Deprecated(since: '7.2')] and have it be understood by humans
and tooling alike.