-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[red-knot] Consistent suffixes for function names #15569
Comments
Could we maybe just remove the suffixes? I'm not sure they add much in a Rust codebase, since all functions have return-type annotations anyway. I also think it's non-obvious to newcomers to the codebase that |
I do think the suffixes are useful here or we have to come up with new names entirely. E.g. |
I opened a #15618 as a proposal on how to rename
I opened another draft which renames all |
We previously had a scheme where functions that had a
_ty
suffix would return aType<'db>
. This has been broken in a few places, for example:bindings_ty
which returns aSymbol<'db>
declaration_ty
which returns aTypeAndQualifiers<'db>
We should probably clean this up, i.e. either come up with new suffixes, with entirely new function names, or decide that we don't want to do anything about it.
The text was updated successfully, but these errors were encountered: