选择性导入

选择性导入可以帮助清理命名空间并加快编译时间,因为编译器只需要解析特定的选定函数。

import std.stdio: writeln;
void main()
{
    writeln("Hello world");
}