-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
update internal terminology: Substs
-> GenericArgs
#110793
Comments
Substs
-> GenericArgs
Substs
-> GenericArgs
This does require some familiarity with the compiler as I assume it to be very annoying to rebase in case there are issues with the implementation. |
@lcnr can i work on this? |
@rustbot claim |
@AnakinSkywalkeer are you still working on this? If not I would like to work on this. |
sure |
@rustbot claim |
there are still quite a few uses of |
subst -> instantiate continues rust-lang#110793, there are still quite a few uses of `subst` and `substitute`, but changing them all in the same PR was a bit too much, so I've stopped here for now.
subst -> instantiate continues rust-lang#110793, there are still quite a few uses of `subst` and `substitute`, but changing them all in the same PR was a bit too much, so I've stopped here for now.
subst -> instantiate continues rust-lang#110793, there are still quite a few uses of `subst` and `substitute`, but changing them all in the same PR was a bit too much, so I've stopped here for now.
I'm interested in contributing, but I'm new to Rust and GitHub. I've noticed this issue is marked "E-mentor", so if you'd be willing to offer guidance I'd love to help! Thanks, |
@rustbot claim |
I realize it's too late to ask for this now, but... was there ever an MCP for this? Not all jargon is bad. Subtle technical concepts need precise terms to describe them. |
yes-ish rust-lang/compiler-team#451 which was discussed in https://rust-lang.zulipchat.com/#narrow/stream/233931-xxx/topic/Rename.20various.20internal.20things.20compiler-team.23451 after quite a while @oli-obk then opened #110254 which was discussed in https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/naming.20bikeshedding I think the situation is unfortunate and looking back it would have likely been better to open separate MCPs for each individual change. Because the original |
That MCP suggested |
🤷 maybe I'm in the minority here. I teach substitution in class so I'm obviously biased towards finding this a completely natural term to begin with, so I have a fairly high bar for what I consider a good replacement. |
Hmm, would it be better to change it into other suitable name? Maybe I just opened PR without sufficient considerations. |
I'm happy the skolemization term is gone as I was never convinced that this was actually skolemization in the sense it is used in e.g. logic. ;) |
Didn't know that cause I was not using rust that day 😄 |
As a compiler amateur, I also find "substitute" to be more intuitive than "instantiate". My understanding is (correct me if I'm wrong): you take a type representation with generic values and you substitute those generic values with concrete types to produce another type representation. I think the word was helpful for me to build that mental model when digging into rustc. |
Yes that understanding sounds right. Also worth mentioning, we have a type called |
Dejargonize `subst` In favor of rust-lang#110793, replace almost every occurence of `subst` and `substitution` from rustc codes, but they still remains in subtrees under `src/tools/` like clippy and test codes (I'd like to replace them after this)
Dejargonize `subst` In favor of rust-lang#110793, replace almost every occurence of `subst` and `substitution` from rustc codes, but they still remains in subtrees under `src/tools/` like clippy and test codes (I'd like to replace them after this)
Rollup merge of rust-lang#120958 - ShoyuVanilla:remove-subst, r=oli-obk Dejargonize `subst` In favor of rust-lang#110793, replace almost every occurence of `subst` and `substitution` from rustc codes, but they still remains in subtrees under `src/tools/` like clippy and test codes (I'd like to replace them after this)
change substitutions to the more familiar name of generic arguments in the compiler.
this work was started in #113591 but there are still some uses of the old terminology left.
How to work on this
grep for remaining uses of
subst
,substitution
andsubstitute
and figure out how to replace them with the new terminology: instantiate and generic argumentcc #110254 @oli-obk
The text was updated successfully, but these errors were encountered: