DIP 1009--Improve Contract Usability--Preliminary Review Round 1
meppl via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jun 21 02:53:40 PDT 2017
On Wednesday, 21 June 2017 at 09:27:20 UTC, MysticZach wrote:
> On Wednesday, 21 June 2017 at 08:15:34 UTC, MysticZach wrote:
>> On Wednesday, 21 June 2017 at 04:16:22 UTC, Moritz Maxeiner
>> wrote:
>>> int myFunc(Args...)(Args args)
>>> if (Args.length > 2)
>>> in (args[0] != 0)
>>> in (args[1] > 1)
>>> out (result => result > 0) { ... }
avoiding the "anonymous scope"-extra wouldnt hurt much?
int myFunc(Args...)(Args args)
if (Args.length > 2)
in (args[0] != 0)
in (args[1] > 1)
out (result => result > 0)
do { ... }
More information about the Digitalmars-d
mailing list