Hacker News new | ask | show | jobs
by eternauta3k 1596 days ago
Indentation is not the reason why it's hard to autoformat Python code, or any other language for that matter.
1 comments

it's definitely a reason for python. consider:

if foo: if bar: do something else: do something else

how would you autoindent that?

You wouldn't, as that's not a valid python line.