[swift-evolution] [Pitch] improve import sentence: allow import specific nested types
Cao Jiannan
frogcjn at 163.com
Thu Sep 29 00:07:50 CDT 2016
Now Swift 3 allow us import specific enum/struct from module, but it only allow us import top-level declaration.
For example:
in MyFoudnation framework:
public struct Time {
public struct DateOnly {}
}
in App target:
I can only
import struct MyFoundation.Time
But I cannot
import struct MyFoundation.Time.DateOnly
So allow developer import nested types
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160929/89595289/attachment.html>
More information about the swift-evolution
mailing list