r/ProgrammerHumor • • Aug 26 '20

Python goes brrrr

Post image
59.2k Upvotes

789 comments sorted by

View all comments

Show parent comments

137

u/rxwsh Aug 26 '20

Strict Indention is not a definite structure?

0

u/[deleted] Aug 26 '20

[deleted]

5

u/RegardTheFrost Aug 26 '20

No data types? Care to elaborate?

29

u/drbuttjob Aug 26 '20 edited Aug 26 '20

It's wrong to say there are no data types. I think what they meant was that is dynamically typed, not statically typed like C, Java, Rust, etc.. The language doesn't check for type information at compile time, so including it isn't necessary.

I get that, I like declaring the data type with a variable and being certain about what it is—it helps me read code better. But I also understand the advantages of not working with a statically typed language. And if programmers are using type hints, the readability/comprehension problem isn't as big a problem. But since type hints in Python are essentially comments, they aren't a type guarantee like in Java.

→ More replies (5)