News for hackers. Stuff that matters.
Re:Let’s Stop Bashing C by pjc50 on Friday December 02, 2016 @12:31PM (#13090547)
It's not that it's hard to change, it's just that you have to keep track of it, and if it's damaged you have to work out what it's supposed to be.

In an Algol brace-blocked language (or Pascal, Verilog etc which use begin/end), you can just put stuff in the middle of a block, check that what you've just inserted is balanced, let the editor reformat it, and you're fine. Whereas if you've lost the indentation from

    if a:
        print b
        a = a + 1
then you have to work out all over again whether the second line is part of the block or not.
Re:Let’s Stop Bashing C by infogulch on Friday December 02, 2016 @02:53PM (#13091721)
Ah true. Thanks for the explanation.

So maybe what C's missing is a standardized, popular, universal, automatic fmt-on-save. This eliminates its' issue problem with improperly indented code.

Re:Let’s Stop Bashing C by pjc50 on Friday December 02, 2016 @03:07PM (#13091850)
Yeah, most projects have a coding standard and you can run indent(1) to enforce it. I don't think it's high on the list of issues with C though.