Digital Mark πŸ•ΉπŸ‘ΎπŸ₯ƒ is a user on cybre.space. You can follow them or interact with them if you have an account anywhere in the fediverse.

I Was Right To Hate And Fear Python's Significant Whitespace: A Journey Of Revelation

mastodon.social/media/ta4HQbjz

Ah, it's not really the indentation it's complaining about; it's that I defined a function with no variables without putting () after it.

Sigh.

It's the little details that show they care.

Ok, now I hate Python's indentation for really.

I can't copy/paste text lines from a function I'm debugging from a text file into an interactive window, because indentation.

Every. Other. Scripting. Language. doesn't care because the indentation is whitespace and can be safely ignored.

Second massive way Python's indentation is a huge fail:

You want to quietly comment out a line in your script, like say an if statement? Delete that conditional, just make that code always run.

Haha lol nope

No really nope.

You gotta massacre that poor if statement, destroy your indentation, remove all traces and any way of quickly reverting it, otherwise it's an

*** INDENTATION ERROR ***
*** REDO FROM START? ***