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

H. S. Teoh hsteoh at quickfur.ath.cx
Sun Sep 23 21:30:08 PDT 2012


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.


T

-- 
I am a consultant. My job is to make your job redundant. -- Mr Tom


More information about the Digitalmars-d mailing list