From: stephan b. <st...@ei...> - 2003-08-26 07:41:00
|
On Monday 25 August 2003 10:34, Rusty Ballinger wrote: > Dude, we need to have some virtual thumbwrestling match or something > to settle our indentation differences. oh, damn, you just reminded me that i majorly re-indented some code night before last. :/ > My claims are: > - indentation should be one tab (hard tab, ASCII 9, not n spaces) per > level. Each developer then sets their editor to display tabs as 2, > 3, 4, 8 spaces, whatever they prefer, but tabs are what get saved. Agreed. If i've done anything other than that (e.g., saved spaces instead of tabs) then it is unintentional. It just occurred to me that i have no idea if xemacs' indention feature uses tabs or spaces, and make heavy use of that feature. (time to experiment...) > (Within lines where stuff is easier to read when it's lined up, use > spaces there, but the initial indentation should be hard tabs.) > - namespaces don't count as a level of indentation. (If that doesn't > sit well with anyone's text editor, I will happily add > NAMESPACE_BEGIN & NAMESPACE_END macros to eliminate the curlies!) Okay, i'm certainly guilty of namespace indentation, but only to the degree that xemacs forces it upon me ;). > Be warned, I've been training my thumbs by doing woodworking > projects, and my aim with a hammer is terrible. /bow /scrape -- ----- stephan The dude over there trancing in front of the console... st...@ei... - http://www.einsurance.de "The marketing mechanism of global Open Source community is best described as a massively parallel drunkards walk, filtered by a Darwinistic process." -- Bruce Parens |