A Discussion of Tuple Syntax

Mr. Anonymous mailnew4ster at gmail.com
Tue Aug 20 03:44:58 PDT 2013


On Tuesday, 20 August 2013 at 10:38:30 UTC, 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)
>
> .

It's not only long, but also ugly (IMO of course).


More information about the Digitalmars-d mailing list