reference icon indicating copy to clipboard operation
reference copied to clipboard

Rename "unsized" coercion as "unsizing"

Open WaffleLapkin opened this issue 9 months ago • 6 comments

Built on top of #1731

WaffleLapkin avatar Apr 18 '25 14:04 WaffleLapkin

For whatever reason, "unsized coercion" feels more linguistically correct to me than "unsizing coercion". Here's one linguistic analog that perhaps underlies that feeling. We say "condo conversions" rather than "condoing conversions". The conversion makes the thing into a condo, so that's the kind of conversion that it is. Similarly, here, the coercion makes the thing unsized, so it's an unsized coercion.

traviscross avatar May 28 '25 23:05 traviscross

heh, "the coercion makes the thing unsized" explanation tells me unsizing coercion sound closer to what is meant

unsized coercion sounds like a coercion that happens to an unsized type (or to a type that may or may not be sized)

tshepang avatar May 29 '25 12:05 tshepang

Yes, I understand that as the motivation. I just can't find a lot of linguistic precedent for that reading in the context of converting things. E.g., "metric conversion" is to convert things to metric; it's a synonym for metrication. Similarly, if X is a religion, then an "X conversion" is a conversion to that religion. If I said we were doing an "octal conversion", I'd mean we were converting to octal; a "Markdown conversion" would be a conversion to Markdown. If we do a "prime factorization", it's the output rather than the input that is prime. The "red shift" (not "reddening shift") makes things appear more red. Etc.

traviscross avatar May 29 '25 14:05 traviscross

those other examples seems like they work due to convention, but they still feel not correct grammatically... they are ambiguous to those without context or experience

tshepang avatar May 29 '25 15:05 tshepang

We talked about this on the lang call today without consensus on the renaming question, but with consensus to leave this matter in the hands of lang-docs. @tmandry is interested in being part of the discussion we have on this on the lang-docs side.

traviscross avatar Jul 09 '25 21:07 traviscross

:umbrella: The latest upstream changes (possibly 792ec170b79e3e71f8115bd8d677bc070f9d915f) made this pull request unmergeable. Please resolve the merge conflicts.

rustbot avatar Oct 07 '25 21:10 rustbot