#: 4002 S3/Languages
30-May-90 17:32:25
Sb: #3964-#C and JOoysticks
Fm: Bruce MacKenzie 71725,376
To: Zack Sessions 76407,1524 (X)
I think that it is a bit too strong to say that the use of parentheses with a
return statement is K&R standard. It IS a common style. I broke myself of the
habit because I tended to type 'return()' when no value was to be returned.
The COCO compiler chokes on this. It can be argued that using parentheses is
undesirable since it makes the return statement look like a function call,
which it isn't. On the other hand, the parentheses can make the code read more
clearly, especially within a complex line of code. In the end it is a matter of
style and personal preference.
There is 1 Reply.
|