[swift-evolution] The lack of namespaces is leading people astray
xenadu at gmail.com
Tue Jan 31 00:02:52 CST 2017
> On Jan 30, 2017, at 5:55 AM, Tuur Anton via swift-evolution <swift-evolution at swift.org> wrote:
> The lack of namespaces is making people create all kinds of "design patterns".
> What do you think?
I’ve used languages with namespaces for many years. I don’t find multi-level namespaces to be much of an improvement over a single-level namespace in most cases. On the contrary, I find it much simpler to avoid hunting around importing a hundred namespaces. This is what you end up with:
using System.Net <http://system.net/>;
using System.Net <http://system.net/>.HttpClient;
The only thing we really need in Swift is the ability to have a Private submodule, especially for mixed-mode frameworks.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution