About Go, D module naming

Dmitry Olshansky dmitry.olsh at gmail.com
Fri Dec 21 00:57:10 PST 2012


12/21/2012 12:44 PM, Timon Gehr пишет:
> On 12/21/2012 06:41 AM, Walter Bright wrote:
>> ....
>>
>> D has an excellent module system.
>
> ... modulo the private symbol clash issue. For all I know it is
> deliberate, which is embarrassing. Other than obviously breaking
> modularity, it severely restricts the usefulness of symbol
> disambiguation (which it makes necessary when it should not be), because
> the disambiguating alias may introduce more conflicts even if it is
> private, all over the code base.
>

+1. It never made any sense to me that private is visible but not 
accessible. A carryover from C++ I guess (but there we just hide stuff 
out of the header file, use awful internal namespaces etc.).

> Eg:
>
> https://github.com/D-Programming-Language/druntime/pull/298#discussion_r1691013
>
>
>> No, I don't think Go or anyone else has a better one.
>
> Other languages that support modules usually get hiding of private
> symbols (or equivalent) right.


-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list