A Discussion of Tuple Syntax

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Aug 20 13:06:27 PDT 2013


On Tue, Aug 20, 2013 at 11:53:50AM -0700, Andrei Alexandrescu wrote:
> 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.
[...]

BANG!


T

-- 
They say that "guns don't kill people, people kill people." Well I think the gun helps. If you just stood there and yelled BANG, I don't think you'd kill too many people. -- Eddie Izzard, Dressed to Kill


More information about the Digitalmars-d mailing list