+----[ 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 |a...@theinternet.com.au|Specialist To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message