A different tuple syntax

nazriel spam at dzfl.pl
Thu May 30 23:09:55 PDT 2013


>> Then proposal with {} risen:
>>
>>    auto {x, y} = foo();
>>    {int x1, string y1} = foo();
>>
>>    {int, string} foo() {
>>
>>        {int tmp, string tmp2} = {3, "dsa"};
>>
>>        return {42, "dsa"};
>>    }
>>
>
> This is a reciepe for disaster. {} are already used way too 
> much, sometime on way that are hard to deambiguate.
>

I agree.


More information about the Digitalmars-d mailing list