{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiewt4yyzr7nq6sct7h7cv2guwgxhnxiugysc4lv4vmx6nxxlvdlli",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mivybux3hkx2"
},
"path": "/t/pre-rfc-bulk-visibility-syntax/24136#post_5",
"publishedAt": "2026-04-06T19:01:45.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"Frequently Requested Changes - The Rust Language Design Team"
],
"textContent": "> I think this generally falls under the \"alternative syntaxes\" part of Frequently Requested Changes - The Rust Language Design Team.\n\nI'd argue back considering this rule doesn't quite define what \"alternative syntax\" means in cases beyond personal aesthetic dissatisfaction. It also isn't clear on how much expected utility should overrule it.\n\nThere are also \"contradictory\" examples that are already in the language, most notably how `extern` & `use` have both singular _and_ bulk syntax. I don't see how, say, having to type `extern \"C\"` and `pub(crate)` five times in a row are different, yet we have bulk `extern { ... }` syntax and absolutely no bulk visibility syntax.\n\n> But I don't want to make people have a coding standards conversation about which they should use in a codebase. I don't want to have to discuss which one `rustfmt` should use. Etc.\n\nrustfmt wouldn't enforce any particular syntax \"alternative\" anyway (as it _already doesn't_ with said examples of contradictions), so I don't quite follow what you mean by that.\n\nI see how conventional division could be an issue since visibility qualifiers are significantly hotter than `extern`, but I doubt it would make a _huge_ difference in the end due to the unambiguous and deducible nature of the \"alternative\" syntax. Besides, there are also \"contradictory\" examples to this that are already in the language, most relevant one being the alternatives of `use` mentioned earlier:\n\n\n // syntax a\n use foo::bar;\n use bar::baz;\n // syntax b\n use { foo::bar, bar::baz };\n\n\nOf course this is a rather primitive proposal, I mostly just wanted to see what people thought about it and whether if it would require significant internal rustc refactoring, that's about it.",
"title": "[Pre-RFC] Bulk visibility syntax"
}