> On Mar 26, 2017, at 9:37 PM, Charles Srstka via swift-evolution 
> <[email protected]> wrote:
> 
> For your tiny helper type, you want it to be only visible to the type it 
> helps. If it’s in a separate file, it has to be visible to the entire module.

Would it help to put the type in a separate file, but in an extension on the 
type it's helping? This would at least keep it out of the top level of the 
`internal` namespace, which might make people less likely to use it by accident 
(which I *think* is what you're trying to guard against here).

-- 
Brent Royal-Gordon
Architechies

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to