Now that's a DIP that could use some love
Nicholas Wilson
iamthewilsonator at hotmail.com
Mon Sep 14 07:52:25 UTC 2020
On Monday, 14 September 2020 at 00:00:15 UTC, Adam D. Ruppe wrote:
> On Sunday, 13 September 2020 at 22:29:00 UTC, Andrei
> Alexandrescu wrote:
>> Solves a long-standing, difficult problem of outputting
>> meaningful, useful error messages.
>
> It might be possible to do this with the DIP but it will take
> some repetition:
>
> void foo(T)() if(checkInputRange!T.passed,
> checkInputRange!T.error) {}
>
Would be less nasty if
https://issues.dlang.org/show_bug.cgi?id=21247 were fixed, then
you could just do:
void foo(T)() if(checkInputRange!T) {}
More information about the Digitalmars-d
mailing list