[Accepted] SE-0491: Module selectors for name disambiguation

Hello Swift community,

The review of SE-0491: Module selectors for name disambiguation ran from September 13th through September 30th. The Language Steering Group has decided to accept this proposal, including the mid-review amendment which prohibited module selectors from appearing on dependent member types.

The reception of having some mechanism for this type of disambiguation was largely positive, with some disagreement over the right spelling. While the LSG was sympathetic to the concerns raised in the pitch thread about some of the downsides of this spelling, we did not feel that any of the alternatives raised in the proposal (or the review thread) were clearly better given the benefits of :: noted in the proposal.

As always, thank you for helping make Swift a better language.

Freddy Kellison-Linn
Review Manager

27 Likes

I’m really sorry for resurrecting such an old post, but what about this one? It’s still in Accepted state for half a year whilst the feature is really neat

1 Like

It works for me in Swift 6.3 (Xcode beta) (and godbolt nightly [1]) but not 6.2. Implementation merged in Oct 25 [2]. With luck the Swift-evolution metadata [3] will change with the 6.3 release.

[1] https://godbolt.org/z/8Gvd7sPzn

[2] [SE-0491] Implement lookup and diagnostics for module selectors (MyMod::someName) by beccadax · Pull Request #34556 · swiftlang/swift · GitHub

[3] https://www.swift.org/swift-evolution/#?proposal=SE-0491