reddit discussion about Go turns to D again
dsimcha
dsimcha at yahoo.com
Sun May 15 10:36:28 PDT 2011
On 5/15/2011 1:06 PM, Robert Clipsham wrote:
> Fair enough, I guess that makes more sense. But surely if you import
> std.parallelism then you plan on using it? In which case initialization
> in a static this() would probably be a good idea? (Although I guess that
> means you can't customize the number of worker threads, in the case
> where it can't automatically be detected for whatever reason?)
>
Customizing the number of worker threads is another good reason.
Besides, some people (myself included) maintain a module in their
personal libs that publicly imports all their most commonly used Phobos
modules to save on import statement boilerplate. Therefore, I don't
think that just importing something without using it should have
substantial overhead.
More information about the Digitalmars-d
mailing list