News for hackers. Stuff that matters.
Re:Plan 9 Coding Conventions for C by maw on Wednesday May 22, 2013 @09:26AM (#5750620)
True, but the flip side is that in Python automatic indentation cannot possibly work.
Re:Plan 9 Coding Conventions for C by safod on Wednesday May 22, 2013 @09:52AM (#5750800)
Why not? vim indents one more when encountering a colon at the end of a line. It also de-indents when encountering a return or break statement. Of course in all other cases you have to de-indent manually, however, hitting backspace once is not more work than typing a closing curly brace.
Re:Plan 9 Coding Conventions for C by maw on Wednesday May 22, 2013 @10:35AM (#5751120)
What I mean is that you can't tell your editor to indent an arbitrary block of code.
Re:Plan 9 Coding Conventions for C by sp332 on Wednesday May 22, 2013 @11:50AM (#5751631)
Right, because a block of un-indented python is syntactically incorrect. It would be just like stripping all the brackets out of some C code and asking the editor to add brackets to the resulting mess properly.