(no title)
davnn
|
10 months ago
Working in the ML field, I can't hate Python. But the type system (pre-3.12, of course) cost me a lot of nerves. Hoping for a better post-3.12 experience once all libraries are usable in 3.12+. After that experience, I’ve come to truly appreciate TypeScript’s type system. Never thought I’d say that.
srean|10 months ago
I needed the array indices to be int64 and specified them as such during initialization.
Downstreams, however, it would look at the actual index values and dynamically cast them to int32 if it judged there would be no loss in precision. This would completely screw up the roundtrip through a module implemented in C.
Being an intermittent bug it was quite a hell.
drumnerd|10 months ago
You don’t know but you are addicted to types
Come to the light - Haskell!
hyperbrainer|10 months ago
Or embrace logic + functional programming: Curry. https://curry-language.org/
davnn|10 months ago
hk__2|10 months ago
globular-toast|10 months ago
Pyright probably works if you use it for a new project from the start or invest a lot of time "fixing" an existing project. But it's a totally different tool and it's silly to criticise mypy without understanding its use case.
NeutralForest|10 months ago
davidatbu|10 months ago
drumnerd|10 months ago
unknown|10 months ago
[deleted]