Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 1999 09:29:48 -0700
From:      Nate Williams <nate@mt.sri.com>
To:        Andrew Kenneth Milton <akm@zeus.theinternet.com.au>
Cc:        current@FreeBSD.ORG
Subject:   Style (was Re: btokup()..)
Message-ID:  <199901281629.JAA29626@mt.sri.com>
In-Reply-To: <199901280833.SAA14617@zeus.theinternet.com.au>
References:  <199901280728.XAA98161@apollo.backplane.com> <199901280833.SAA14617@zeus.theinternet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
> | :I think that style(9) should be modified to include
> | :"Parenthesis may be used to improve the readbility of complex
> | :expressions even if not strictly required."
> | :instead of the stupid phrase presently there.
> | :also:
> | :"Braces around code blocks should be allowable even when not strictly
> | :needed, for the purpose of readbility."
> | :
> | :The aim is to produce readble maintainable code, not to save bytes in
> | :sourcecode!
> |
> |      I agree completely.  I've already gotten into the habit of added
> |      braces when conditonal expressions exceed one line, even though there 
> |      may be only one statement.  Otherwise the code is just too unreadable.
> 
> Is there an ident style for (x)emacs to enforce/promote this style?

*emacs never inserts code, so you couldn't get it to 'add' parentheses
or braces to code.  It doesn't even whine about them.  The only thing
that it does is move your white-space around.


Nate

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901281629.JAA29626>