Comma operator = broken design

Regan Heath regan at netmail.co.nz
Fri Dec 9 05:34:40 PST 2011


On Fri, 09 Dec 2011 13:15:22 -0000, Piotr Szturmaj <bncrbme at jadamspam.pl>  
wrote:

> Regan Heath wrote:
>> On Fri, 09 Dec 2011 12:00:57 -0000, Timon Gehr <timon.gehr at gmx.ch>  
>> wrote:
>>> On 12/09/2011 10:26 AM, Jonathan M Davis wrote:
>>>> And unless you're dealing with a programmer who
>>>> uses it uncommonly often, not much code is going to break.
>>>
>>> I _am_ such a programmer.
>>
>> So it seems :) I don't want to make your life harder but I think this
>> change would make life easier for a large number of people [...]
>
> What about just not using comma operator? Yes, I know about keyboard  
> issue. There are many cases when 'typoed' code compiles but doesn't work  
> as programmer would expect. This is not limited to comma op.

True, but D has already turned a good number of those into errors.  This  
is another example where it could for very little cost, IMO.

R

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d mailing list