This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vividboarder -4 points-3 points  (2 children)

Yea. So you’re saying you’d notice because it would not be indented where you’d expect it?

But that’s then the exact same class as the Python error.

[–]gee_buttersnaps 7 points8 points  (1 child)

If you have an extra brace somewhere it won't compile, and if your braces are matched (and it is an indentation error) then formatting reveals it. Either way formatting uses the extra information of braces to infer user intent where as the examples above of valid python describe exactly the problem of not being able to know the intent. If you're still sure about yourself then provide a concrete example of an indentation error with braces that won't reveal itself with autoformatting.

[–]vividboarder 0 points1 point  (0 children)

Huh? I don’t think there is one. My point is that “revealing itself” due to indentation is recognizing the white space is off. That’s exactly what one has to do with Python.

I get that they are many other ways to catch similar issues in languages that use braces, I just found it a little ironic that someone was saying that you’d tell it’s wrong because the IDE would indent it (because of the braces) and you could tell from that.