-
Notifications
You must be signed in to change notification settings - Fork 25
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
Static lifecycle annotation #110
Comments
It might be better for static annotations to be internal to the function rather than external, this way they can also be inspected dynamically. Taking inspiration from Emacs Lisp static declarations: fn <- function() {
declare(
lifecycle = "deprecated"
)
} I guess |
An internal declaration wouldn't help with printing and doesn't seem easier to parse than |
It's not about being easier to parse than |
Actually it's easier to parse because |
|
With |
I think we should start with a tool that does static analysis of existing code; it won't be perfect but the lifecycle functions have been designed to be self-contained, and just extracting all |
Closing this since I think we'll consider more broadly in the context of static declarations about functions. |
Maybe something like:
This would make future static analysis easier, and would also display a message when you printed the function.
The downside is that I think this would have to be duplicative with the lifecycle deprecation calls + documentation badge, since I don't see how to automatically generate one from any of the others.
The text was updated successfully, but these errors were encountered: