DIP10005: Dependency-Carrying Declarations is now available for community feedback
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Wed Dec 14 16:54:43 PST 2016
On Thursday, 15 December 2016 at 00:29:17 UTC, Chris M wrote:
> For the "with" keyword, why is the import statement kept? Seems
> unnecessary to keep it.
>
> void process(File input) import std.stdio;
> struct Buffered(Range) if (isInputRange!Range)
> with (std.range)
> {
> ...
> }
to not block future uses of such `with` syntax for different
purposes. and (which is more important for me, for example) to
make greping easier. and to keep `with` semantics: it should
introduce scope over *existing* things. explicit `import` brings
the module to the existance. choose any options you like. ;-)
More information about the Digitalmars-d
mailing list