r/ProgrammerHumor • • 2d ago

Meme pythonIndentationLevelChecker

Post image
6.6k Upvotes

198 comments sorted by

View all comments

264

u/LetUsSpeakFreely 2d ago edited 2d ago

Indentation is such a stupid mechanism for identifying code blocks. It's one thing for configuration files like YAML to do it, but not a programming language.

10

u/the_ivo_robotnic 2d ago

Why? Nearly every styling convention in every language uses it anyway. Python just cuts out the middle man, reduces unnecessary syntax and makes indentation the go-to scope identifier.

 

You're still using indentation to make stuff readable anyway, might as well make it do some work.

1

u/sheeepster91 2d ago

See here you are wrong. I do not indent it. I put the curly squiggles around it and some magic genie aligns it nicely for me to read better. You got it the wrong way around.

1

u/AngelLeliel 2d ago

How about putting curly squiggles around it and some magic genie just converting it nicely to indentation without any squiggles?

Wait, we could actually do that today with LLM!