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. ;-)