Re: My whitespace style

看板FB_chat作者時間17年前 (2009/04/15 13:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/9 (看更多)
David Kelly wrote: > > On Apr 14, 2009, at 6:24 PM, deeptech71@gmail.com wrote: > >> David Kelly wrote: >>> On Mon, Apr 13, 2009 at 10:46:26AM +0200, deeptech71@gmail.com wrote: >>>> Tabs are better, because they allow the programmer to specify the >>>> desired width, and is dynamically changable at any time. >>> Spaces are better because they let the author specify the formatting and >>> not left to some other re-interpretation. >> >> And indeed they should used where formatting is important. However, >> C/C++ indentation is not of this nature. > > > It is if you want your comments to stay lined up, and code remain readable. I don't want to make my comments stay lined up, and code still remains reabable. > There are many sections of code I write C in *columns*, especially when > making repetitive calls to the same function with different arguments. I > make the arguments line up in a column. printf() is a common example, > that I want the arguments to line up no matter it has no effect on the > output. I indent for readability and the result almost never survives > variable tab interpretation. Could you please give me a (preferrably widely used) example of columnizing calls which cross different levels of indentation? _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
文章代碼(AID): #19vN5J00 (FB_chat)
討論串 (同標題文章)
文章代碼(AID): #19vN5J00 (FB_chat)