Uh oh!
There was an error while loading. Please reload this page.
modules: describe both module filename styles without giving a clear preference - #1703
modules: describe both module filename styles without giving a clear preference#1703RalfJung wants to merge 4 commits into
Conversation
joshtriplett
commented
Dec 21, 2024
I think changing the expressed preference would require a consensus to change it. There was an intentional decision in 2018 to try to migrate towards the Rust 2018 style. |
RalfJung
commented
Dec 22, 2024
I didn't realize that this was an intentional decision. There's little other indication of a goal of pushing the ecosystem towards the 2018 style. Not even the compiler itself was ever systematically adjusted. So, that would be a t-lang FCP then? |
RalfJung
commented
Dec 22, 2024
@rustbot labels +I-lang-nominated |
joshtriplett
commented
Dec 22, 2024
@RalfJung IIRC, in 2018 when we designed the new module system, it was at that time an intentional decision to pointedly present it as "the new way" by contrast with "the old way". We didn't particularly push people to switch. I'm not suggesting that we would necessarily object to this proposal, but I do think it's fair to say that this proposal represents a change in recommendations, and it probably warrants at least a discussion. |
As some archaeology, this went in with: At the time, @ehuss said:
The tracking issue, where the FCP happened, was: On that thread, Josh said:
There's also some discussion between then-lang members suggesting that deprecation would have run into blocking objections. The RFC was: What that RFC says specifically is:
|
scottmcm
commented
Feb 26, 2025
Personally, I like the argument that the reference isn't the place to say anything about which is "encouraged". The reference is the place to say "these both work", lints and the book and such are the place to say which one you should use. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
traviscross
commented
Feb 26, 2025
@rustbot labels -I-lang-nominated We reviewed this in lang triage today. We agreed that the 2018 lang consensus was indeed to encourage one way ( |
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
rustbot
commented
Mar 9, 2025
☔ The latest upstream changes (possibly dda31c8) made this pull request unmergeable. Please resolve the merge conflicts. |
Uh oh!
There was an error while loading. Please reload this page.
ehuss
commented
Mar 13, 2025
I'm uncertain how to interpret this. Are you saying that you do or do not want to proceed with this change? Or is there some other change you are suggesting? My interpretation is that the current text encourages |
traviscross
commented
Mar 13, 2025
We did not have any current consensus to change the prior consensus, which was to encourage That is, the lang team's standing normative (in the sense of setting norms, but not in a way encoded in the language) position is what is currently written in the Reference. |
traviscross
commented
Mar 20, 2025
Thanks @RalfJung for putting this forward. We talked about this on the lang-docs call, then on the spec call. We're going to close this for a kind of stylistic reason. In the Reference, we document the "most recent" Rust in the main flow of text, and then we document older things we support. Most prominently, this is what we do for editions. Here, it's a closer call, but given the standing lang consensus about issuing a normative (in the sense of setting norms) position on this, it falls in the same bucket for us, and so in that way, the existing text is OK. |
Kinrany
commented
Dec 1, 2025
Instead of removing the encouragement altogether, perhaps it's possible to either amend it to mention significant controversy or to replace it with an indirect encouragement that states the motivation behind the current consensus and points to its discussion? |
There's currently no clear consensus on which filename style to use for modules, and many people have a style tha mixes both options. So let's make the reference just describe the facts, without saying which variant is preferred.
Also see the discussion on IRLO.