Propagating Errors

Olivier FAURE couteaubleu at gmail.com
Wed Mar 6 22:34:37 UTC 2019


On Wednesday, 6 March 2019 at 12:48:08 UTC, FeepingCreature wrote:
> I think the way to go is instead of returning `false`, have 
> __traits(compiles) (which is really the core source of these 
> difficulties) return an "error object" that evaluates to false, 
> but also encodes additional information about the problem, 
> recursively.

YES!

I'd go further and say, use error objects in any trait that 
returns a boolean, and in is expressions.


More information about the Digitalmars-d mailing list