-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
don't tab complete deprecated functions #4496
Comments
Whereas this is a good idea, implementation can be problematic. The problem is that deprecated function is no more than an ordinary function with an warning statement generated by the macro. I am not sure whether there is a programmatic way that can tell "whether a function is deprecated or not". Also some function is partly deprecated, that is, only deprecated on some combinations of argument types. For such functions, it is still desirable to tab complete the function name. This adds to the complexity of the situation -- we want to know whether the function is completely deprecated. |
Hack: when a function is deprecated using
it is entirely deprecated, and in that case we could add it to a deprecated list. |
We could have a |
I am not asking to implement this currently, but is it possible to allow attaching metadata to types and functions (in future)? Just like Java's annotation or C#'s attributes. So that people can attach attributes/annotations/what-ever-you-call-it to these things and write programs to inspect them. |
Dup of #3526 |
Well, I may not have the best memory, but at least I'm consistent. |
It would be really nice if we didn't offer tab completions for functions defined in deprecated. I'm not sure if this is feasible, but since tab completion is a great way to discover things, it's weird when so many things that it reveals are not recommended.
The text was updated successfully, but these errors were encountered: