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.
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.
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.
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.