TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Zack Sessions 76407,1524 (X)
from: Bruce MacKenzie 71725,376
date: 1990-05-30 17:32:25
subject: #3964-#C and JOoysticks

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.