A Discussion of Tuple Syntax
eles
eles at eles.com
Tue Aug 20 03:38:29 PDT 2013
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)
.
More information about the Digitalmars-d
mailing list