On Friday, 9 February 2018 at 14:11:37 UTC, Atila Neves wrote:
On Friday, 9 February 2018 at 01:55:10 UTC, Benny wrote:
[...]


It's easy enough to create std package like this:

module std;
public import std.algorithm;
//...

However, I'm a _huge_ fan of local imports and only importing what's needed. It helps with build times, binary sizes, and is a boon for finding where things are actually defined when DCD can't figure it out. And, of course, reduces namespace pollution.

Dependencies are usually bad. Imports are dependencies. Ergo...

Atila


FYI: and for the lazy ones, there will hopefully be std.experimental.scripting soon:

https://github.com/dlang/phobos/pull/5916

Reply via email to