Feature request: Optional, simplified syntax for simple contracts

TommiT tommitissari at hotmail.com
Sat Jun 15 19:22:59 PDT 2013


On Sunday, 16 June 2013 at 00:19:37 UTC, Manu wrote:
> Super awesome idea! How about coma separated expressions to 
> perform
> multiple asserts?
>
> int func(int i, int j) in(i<5, j<10)
> {
>   return i + j;
> }

Do you mean ...to get more specific error messages than with 
in(i<5 && j<10) ?


More information about the Digitalmars-d mailing list