DIP69 - Implement scope for escape proof references

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 5 06:10:43 PST 2014


ixid:

>> void foo(int[2]) {}
>> void bar(int[]) {}
>> void main() @nogc {
>>    foo([1, 2]s);
>>    bar([1, 2]s);
>> }
>
> That is a rather unfriendly syntax, it is the kind that 
> degenerates into noise with other structures.

Can you show an example of the noisy code it causes?

And are you able to invent something succint that is better?

Bye,
bearophile


More information about the Digitalmars-d mailing list