Killing the comma operator

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Tue May 10 07:07:35 PDT 2016


On 10.05.2016 15:53, Meta wrote:
>> Do you like comma expressions, and think its presence in the language
>> is more pro than con ?
>
> It should've been killed off a long time ago. It only causes bugs and
> can easily be replaced with a library feature if necessary. I think
> Andrei suggested that it should be changed so that the comma expression
> returns `void` instead of the last expression evaluated.

That's not really forward compatible to tuple support, e.g., one can 
query typeof((1,2)).


More information about the Digitalmars-d mailing list