Re: My whitespace style

看板FB_chat作者時間17年前 (2009/04/16 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/9 (看更多)
On Wed, Apr 15, 2009 at 10:20:08AM +0300 I heard the voice of Giorgos Keramidas, and lo! it spake thus: > > switch (value) { > case SOME_CONSTANT_NAME: do_stuff_here(); break; > case ANOTHER_CONSTANT_NAME: do_some_other_stuff(); break; > default: default_stuff(); break; > } ^^^^^^^^^ ^^^^^^^^^ This is This is indentation alignment > Composite structure initializations also use a style similar to > this, and will almost invariably end up looking horrendously > misformatted when TAB sizes are 'elastic', i.e.: Only if you abuse tabs for alignment. Indentation is not alignment. It's a pity that the two get conflated and everybody ends up treating them the same, so that advocating tab indentation is read as advocating tab alignment (even by proponents of tab indentation). -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. _______________________________________________ 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): #19vY3X00 (FB_chat)
討論串 (同標題文章)
文章代碼(AID): #19vY3X00 (FB_chat)