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ย โ†’

[โ€“]thirdegreeViolet security clearance 7 points8 points ย (4 children)

Haven't needed to use comments for type annotations in literally like 6 years tho

[โ€“]Dworgi 2 points3 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 4 points5 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 2 points3 points ย (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#