Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for the #deprecated directive #4864

Open
scarletcs opened this issue Oct 24, 2024 · 0 comments
Open

Add documentation for the #deprecated directive #4864

scarletcs opened this issue Oct 24, 2024 · 0 comments

Comments

@scarletcs
Copy link

scarletcs commented Oct 24, 2024

The documentation for @deprecated is deprecated, as noted on its page, per issue #2214, and says the following on its page:

Deprecated: @deprecated decorator is deprecated. Use the #deprecated directive instead.

That much is all fine.

However, there is no documentation on the #deprecated directive.

  • The instruction to use the #deprecated directive does not link to documentation for the new feature. (It should!)
  • There is no page titled #deprecated.
  • There is no page titled Directives, or dedicated to explaining what directives are and which directives exist.
  • There is no entry for Directives in the Language Basics table of contents. Its overview page also does not mention directives.

The example for @deprecated says to use the deprecated directive and provides the only example I can find of using it, but this is not exactly primary documentation for #deprecated or for what a directive is or what makes it different to a decorator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant