3 ms·
i am perhaps biased, since my day job is working on static type inference for python[0], but i genuinely do believe that encoding properties like this into the
by zem 5y ago
i am perhaps biased, since my day job is working on static type inference for python[0], but i genuinely do believe that encoding properties like this into the type system gives you not just an extra level of safety, but an extra level of expressiveness when modelling your data in code. it's the equivalent of having units in physics.
i agree that it's not foolproof, but it's better than treating everything as an undifferentiated string.
[0] https://github.com/google/pytype https://github.com/google/pytype