DIP61: Add namespaces to D

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 26 14:53:00 PDT 2014


On Saturday, 26 April 2014 at 18:11:18 UTC, Walter Bright wrote:
> On 4/26/2014 4:57 AM, Dicebot wrote:
>> Necessity to define namespaces for
>> interfacing with C++ must not result in usage of namespaces of 
>> pure D code.
>
> Why?
>
> I don't see much of any use for namespaces in pure D code, […]

This is exactly why we shouldn't add them to the language. It 
complicates the language considerably (just imagine having to 
explain all the C++ programmers why namespaces are not what they 
think they are) for a slightly easier implementation of a rather 
niche feature.

David


More information about the Digitalmars-d mailing list