News for hackers. Stuff that matters.
Re:Objective-C isn't what you think it is by swift on Saturday March 01, 2014 @08:55PM (#7327286)
I never asked for anything; perhaps you are confusing me with luikore.

Namespaces and modules do not prevent name clashes, at least in any language that I'm aware of. Even with a more sophisticated system like Haskell's, you're still out of luck if you have a package name clash. (And getting to the point where that's the limiting factor requires GHC extensions.)

What namespaces/modules buy you with respect to name clashes is just that they make it possible to stomach longer names that make those clashes less likely.

Are you aware of a programming language that does truly prevent name clashes through a namespace or module system? I'd be interested to hear of it.

There are no comments on this comment yet.