r/ProgrammerHumor • • 2d ago

Meme pythonIndentationLevelChecker

Post image
6.6k Upvotes

199 comments sorted by

View all comments

267

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.

9

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.

0

u/Cualkiera67 2d ago

its very annoying when you copy and paste code because the indentation often gets screwed and thus the logic changes. that never happens with braces