DIP 1009--Improve Contract Usability--Preliminary Review Round 1

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 25 04:37:07 PDT 2017


On 6/23/17 6:52 PM, jmh530 wrote:
> On Friday, 23 June 2017 at 17:31:15 UTC, MysticZach wrote:
>>
>> OutExpression:
>>   out ( ; AssertParameters )
>>   out ( Identifier ; AssertParameters )
> 
> Why not?
> 
> OutExpression:
>    out ( AssertParameters )
>    out ( Identifier ; AssertParameters )

The path of least resistance is to use existing language constructs, i.e.

out result => assert(result > 0)


Andrei


More information about the Digitalmars-d mailing list