On Monday, 8 April 2019 at 07:53:23 UTC, Robert M. Münch wrote:
Why does DMD not give a hint, that an import from the standard
lib might be missing? I find these explicit import statements
very annyoing.
There currently are a few hard-coded import hints for common
functions:
https://github.com/dlang/dmd/blob/master/src/dmd/imphint.d
But it definitely could be better.
As Sebastian said, you can do `import std.experimental.all;` or
from version 2.086 `import std;` to import the entire standard
library.
If dmd as a library pans out, a language server might
automatically suggest imports for unresolved symbols like common
Java and C# IDEs do.