Feature request: Optional, simplified syntax for simple contracts

Lionello Lunesu lionello at lunesu.remove.com
Mon Jun 17 23:52:05 PDT 2013


On 6/16/13 8:42, Timon Gehr wrote:
> On 06/16/2013 02:19 AM, 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;
>> }
>> ...
>
> Use &&.
>

Not the same. && won't tell you which one failed.


More information about the Digitalmars-d mailing list