Feature request: Optional, simplified syntax for simple contracts

Timon Gehr timon.gehr at gmx.ch
Thu Jun 20 13:27:32 PDT 2013


On 06/18/2013 08:52 AM, Lionello Lunesu wrote:
> 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.

QoI issue.


More information about the Digitalmars-d mailing list