This is the mail archive of the cygwin-talk mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: religious wars


On 12 June 2007 02:11, Matthew Woehlke wrote:

> Dave Korn wrote:
>> On 11 June 2007 20:48, Matthew Woehlke wrote:
>>> Dave Korn wrote:
>>>> [snip]
>>>> ... because although I really dislike the ...
>>>> 
>>>>     if( arg )
>>>>         x = FuncCall( arg );
>>> Ok, I guess I'll avoid starting a war here. But, IMO the second line is
>>> right, and the first line should be 'if ( arg )' :-).
>> 
>>   You do realise that's inconsistent, yeh?
> 
> It is? Functions ('if' != function) have no space before the
> parentheses,

  So, why should there be a difference between a function call, and any of the
other statements that are valid C?  My way:

stmt:=
  <function-name> (args ...)
  (comma-expression, ...)
  if (cond ...) <stmt>
  var = assignment;
  do <stmt> while (cond)
  var = (assignment);


  Your way:

stmt:=
  <function-name>( args ... )
  ( comma-expression , ... )
  if( cond ...) <stmt>
  var = assignment;
  do <stmt> while( cond )
  var = ( assignment );




  I think I hace more symmetry and orthogonality.




  And ask yourself:  even if - particularly if - you count them as different:
would you really write:

  return( a + b );

and not 

  return (a + b);




  ??????


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]