A Discussion of Tuple Syntax

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Aug 20 11:53:50 PDT 2013


On 8/20/13 3:38 AM, eles wrote:
> On Friday, 16 August 2013 at 21:07:52 UTC, Meta wrote:
>> A good, comprehensive design has the potential to make tuples easy to
>> use and understand, and hopefully clear up the unpleasant situation we
>> have currently. A summary of what has been discussed so far:
>>
>> - (a, b) is the prettiest syntax, and it also completely infeasible
>>
>> - {a, b} is not as pretty, but it's not that bad of an alternative
>> (though it may still have issues as well)
>>
>> - #(a, b) is unambiguous and would probably be the easiest option. I
>> don't think it looks too bad, but some people might find it ugly and
>> noisy
>
> What about:
>
> !!(a, b)
>
> ? Yes, is long, but is type-able quite fast.
>
> Alternative would be:
>
> ??(a, b)
>
> .

Somebody shoot me.

Andrei


More information about the Digitalmars-d mailing list