About Go, D module naming

jerro a at a.com
Fri Dec 21 04:43:17 PST 2012


On Friday, 21 December 2012 at 08:58:03 UTC, bearophile wrote:
> Walter Bright:
>
>> another large source of irritation if unused imports are 
>> errors.
>
> In Go even unused variables are *errors* :-)
>
>
>> D has an excellent module system. No, I don't think Go or 
>> anyone else has a better one.
>
> I think D module system is a primitive tool compared to (S)ML 
> module system.
>
> http://en.wikipedia.org/wiki/Standard_ML#Module_system
>
> More info on SML module system can be found with Google.
>
> Bye,
> bearophile

SML modules are something entirely different from D modules. If 
you want SML module like functionality in D, the closest thing 
are actually structs with all members static (or just wrapping 
your functions in a template), not modules.


More information about the Digitalmars-d mailing list