Maybe D was wrong on contracts

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Wed Sep 16 20:00:57 UTC 2026


On Wednesday, 16 September 2026 at 10:28:08 UTC, Quirin Schroll 
wrote:
> ...
> However, I’d still prefer `in(isGood(input), "input bad")`.

In other words a tuple!

With:
1. bool - the result of contract check
2. char, or interpolated string - the message in case of contract 
failing.





More information about the Digitalmars-d mailing list