[swift-evolution] The lack of namespaces is leading people astray
Russ Bishop
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;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Web;
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.
Russ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170130/3b936ebf/attachment.html>
More information about the swift-evolution
mailing list