Automatic imports?
Ali Çehreli via Digitalmars-d
digitalmars-d at puremagic.com
Fri Feb 3 16:01:15 PST 2017
On 02/03/2017 06:43 AM, Dominikus Dittes Scherkl wrote:
> DIP 1005 provides new syntax to make it possible to avoid global imports.
I haven't followed DIP 1005 closely. Has there been any discussion of
automatic imports that seems to have potential to make both the user's
and implementor's lives easier:
void foo(std.datetime.Duration dur) {
// ...
}
Can the compiler automatically import std.datetime for both the
implementation above and the user? Or, too much beer at work on this
Friday? :o)
Ali
More information about the Digitalmars-d
mailing list