Comma operator = broken design

Regan Heath regan at netmail.co.nz
Fri Dec 9 05:33:44 PST 2011


On Fri, 09 Dec 2011 13:01:12 -0000, Timon Gehr <timon.gehr at gmx.ch> wrote:
> On 12/09/2011 01:11 PM, 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:
>>>> On Friday, December 09, 2011 10:19:18 Don wrote:
>>>>> Are there any cases where you're using comma outside of for loops?
>>>>> I wonder how much would break if were made illegal everywhere else.
>>>>
>>>> I'm sure that it would break code, but most people consider it bad
>>>> practice to
>>>> use the comma operator for much outside of for loops.
>>>
>>> 'most people'?
>>
>> Yes, I would guess that you're in the minority here.
>>
>
> 'most people' do not care about this discussion, so lets stop it. :o)

Sure.

>> So it seems :)
>
> If you carefully read my posts you will find that I did never say that I  
> am against removing the comma operator.

Excellent.

>> I don't want to make your life harder but I think this
>> change would make life easier for a large number of people, a small
>> amount of the time. The equation is unbalanced in favour of it's
>> removal, IMO.
>>
>
> This part of your post is somewhat contradictory.

How so?

R

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


More information about the Digitalmars-d mailing list