Why does Python get so much hate? It is literally like a Basic programming language. Easy to learn and guaranteed to get a job because of massive demand.

@nixCraft significant whitespace makes it very easy to introduce invisible bugs and harder for people who need to customise whitespace for their own legibility (this applies to YAML, too)

And it seems that a significant portion of the industry has chosen static types for various benefits (with some downsides, too, of course) which isn't sufficiently supported by Python yet

Follow

@jokeyrhyme @nixCraft how could significant whitespace introduce invisible bugs? The entire point of it is that it’s easily visible.
Only way I can think of is mixing spaces and tabs in indentation in a way that on some editors will make a block appear to have the same indent but not be treated as such, but Python 3 already thought of that:

Indentation is rejected as inconsistent if a source file mixes tabs and spaces in a way that makes the meaning dependent on the worth of a tab in spaces; a TabError is raised in that case.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.