DIP19: Remove comma operator from D and provision better syntactic support for tuples

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Sun Sep 23 21:54:26 PDT 2012


On Sun, 23 Sep 2012 21:30:08 -0700
"H. S. Teoh" <hsteoh at quickfur.ath.cx> wrote:

> On Sun, Sep 23, 2012 at 04:40:34PM -0400, Andrei Alexandrescu wrote:
> > I discussed this with Walter, and we concluded that we could
> > deprecate the comma operator if it helps tuples. So I started with
> > this:
> > 
> > http://www.prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP19
> 
> +1 to getting rid of the comma operator. (OK, just deprecation, but
> that's a good step.) I always felt it's one of those unnecessary
> holdovers from C. We don't need a comma operator. The only use cases
> I've ever seen of it is in specific contexts (such as for-loops) where
> suitable, relatively confined, syntax extensions would take care of
> everything without the invasiveness of having an entire operator.
> 

I saw it once in an earlier revision of RDMD from about a year ago. It
was an awkward usage (IMO) and isn't there anymore.

So basically, I agree that it's not particularly useful ;)



More information about the Digitalmars-d mailing list