On Tue, Dec 22, 2020 at 12:35 PM Nicolas Grekas <
nicolas.grekas+...@gmail.com> wrote:

> It would be great to allow adding this attribute on classes. What about
> allowing it right now and not bind it to any runtime side-effect? That
> would allow static analyzers to do their job. Same for consts and
> properties by the way.
>
> Also, it would be very useful to add named parameters to the attribute,
> namely: "package" (the name of the package that declares the deprecation)
> and "version" (the version of that package that introduced the
> deprecation), next to the message.
>
> This is critical info when building reports of deprecations.
>
>
You could do that now with a polyfill from userspace.  If the annotation
need not have an effect, then it's just any other userspace implementation.

-Sara

Reply via email to