Feedback on Átila's Vision for D

aliak something at something.com
Sun Oct 20 08:44:37 UTC 2019


On Sunday, 20 October 2019 at 05:43:52 UTC, Walter Bright wrote:
> On 10/19/2019 4:38 PM, aliak wrote:
>> Plus, IIRC dmd is a prime example where splitting is not 
>> happening because of "reasons".
>
> dmd was originally developed as a C++ program, which did not 
> have modules. Hence its organization is not the D module system 
> best practices, and it isn't really fair to hold it as an 
> example of D best practices.

Oh I know, it was a reply to Nicholas proposing splitting up a 
module as a general solution to something - but that's not always 
possible.

>
> I don't think Phobos is a great example of module best 
> practices, either, but that is somewhat forgivable because 
> Phobos was designed long before we knew what D best practices 
> should be. (In particular, Phobos tends to lump too many 
> unrelated things into each module.)
>
> In D, declarations are grouped into a module that would 
> otherwise need "friend" access if it were developed in C++.

Yeah this was related to benefits around being able to keep some 
things private from your friends (which is not d-able currently).




More information about the Digitalmars-d mailing list