On 12/14/2016 5:26 AM, Dominikus Dittes Scherkl wrote:
On Tuesday, 13 December 2016 at 22:33:24 UTC, Andrei Alexandrescu wrote:
Destroy.

https://github.com/dlang/DIPs/pull/51/files

Why not leave it as it is and only change the compiler to
perform inputs _within_ a function before evaluating the declaration, so that
the symbols imported can be used in the declaration?

e.g.

fun(Range x) if(isInputRange!x)
{
   import std.range;
   auto a = x.front();
}

That would make it problematic to have function declarations.

Reply via email to