[swift-evolution] [Proposal][Discussion] Qualified Imports

Robert Widmann devteam.codafi at gmail.com
Thu Jul 21 02:29:11 CDT 2016


This proposal is specifically source breaking because we're only trying to deprecate and remove

import {class|func|struct|...} Module.Entity

-style imports (which not too many people seem to know actually exist).

~Robert Widmann

2016/07/21 0:27、Pyry Jahkola <pyry.jahkola at iki.fi> のメッセージ:

> 
>>> On 21 Jul 2016, at 10:20, Robert Widmann <devteam.codafi at gmail.com> wrote:
>>> 
>>> Simple! You don't need to hide the others if we enforce a rule that explicitly mentioning one in the current file imports that name as a fileprivate identifier which shadows the ones not explicitly mentioned:
>> 
>> What you're describing is making a distinction between an open module and an imported module and is both additive and out of scope for this particular proposal.  We didn't want to touch module re-exports until that proposal came up later.  This is a fantastic idea that we have plans to incorporate in there nonetheless.  This distinction is far more powerful than our current approach of just opening every module that gets imported into the top level namespace.
> 
> Cool, thanks for the feedback. Now, is there a reason to consider any of this before Swift 3's timeframe? Isn't this all additive?
> 
> In any case then, I'll hold that proposal back until Swift 3's scope has been fixed.
> 
> ― Pyry
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160721/6f752f96/attachment.html>


More information about the swift-evolution mailing list