Yes, constraints can have helpful error messages!

Atila Neves atila.neves at gmail.com
Mon Apr 18 08:14:23 UTC 2022


On Friday, 15 April 2022 at 16:39:48 UTC, Marvin Hannott wrote:
> On Friday, 15 April 2022 at 10:07:10 UTC, Atila Neves wrote:
>> [...]
>
> I have, but, ehm, to be honest, I don't quite understand how 
> this is different from just not using constraints at all. 
> Referring to your example:
>
> [...]

The difference is you get a compiler error message telling you 
*why* the concept wasn't satisfied.


More information about the Digitalmars-d mailing list