News for hackers. Stuff that matters.
Re:Julia's multiple dispatch explained with Pokemons by zem on Tuesday July 20, 2021 @11:04PM (#27901911)
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

There are no comments on this comment yet.