Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 1999 08:33:32 +1000 (EST)
From:      Andrew Kenneth Milton <akm@zeus.theinternet.com.au>
To:        nate@mt.sri.com (Nate Williams)
Cc:        current@FreeBSD.ORG
Subject:   Re: Style (was Re: btokup()..)
Message-ID:  <199901282233.IAA22472@zeus.theinternet.com.au>
In-Reply-To: <199901281629.JAA29626@mt.sri.com> from Nate Williams at "Jan 28, 99 09:29:48 am"

next in thread | previous in thread | raw e-mail | index | archive | help
+----[ Nate Williams ]---------------------------------------------
| > | :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.

Sure it does, just not based on indent style. I'm sure you can make
it do it if you wanted to. If it can work out when it should indent,
it can work out how to add a brace and then indent.

I can't do lisp, I've never been able to do lisp, prolog yes, lisp no. 
Must be the prefix notation that screws me.

One company I was at had it automatically inserting comment banners
whenever you created a new file, and building comment blocks when you
opened a new function.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   |  Andrew
The Internet (Aust) Pty Ltd          |  F:+61 7 3870 4477   |  Milton
ACN: 082 081 472                     |  M:+61 416 022 411   |72 Col .Sig
PO Box 837 Indooroopilly QLD 4068    |akm@theinternet.com.au|Specialist

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?199901282233.IAA22472>