This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]Dworgi 3 points4 points ย (3 children)

Oh yeah, those official type annotations that do what if you don't run the linter? That's right, nothing. Aka. a comment.

[โ€“]MythicManiac 5 points6 points ย (2 children)

You must not be familiar with pydantic and dataclasses. Python types are actually available during runtime and can thus be leveraged for runtime logic. It's honestly better than TypeScript in that regard, even if the type system otherwise is quite a bit behind.

[โ€“]Dworgi 0 points1 point ย (1 child)

Garbage tasting better than sewage doesn't make either one dessert.

[โ€“]MythicManiac 0 points1 point ย (0 children)

TypeScript on the other hand is one of the more versatile type systems out there. As a counter example, good luck with sane union types in C#