Y
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
zem
1595 days ago
it's definitely a reason for python. consider:
if foo: if bar: do something else: do something else
how would you autoindent that?
link
squeaky-clean
1595 days ago
You wouldn't, as that's not a valid python line.
link
if foo: if bar: do something else: do something else
how would you autoindent that?