I have started to develop an deep dislike for type hints in Python.
FINALLY someone who gets it. (Which means they are objectively correct, of course and I will now proceed to add to this perfectly objective judgement that just so happens to coincide with my own completely objective perspective on python.)
I think typing is amazing. Strict, static, compile time typing too. What has happened with type hints is that people who came from something like that, or something that pretended to be like that, like Typescript and wanted to have their type checking safety convenience back that they got used to.
And I understand that perfectly.
But the problem is that the beauty of dynamic typing, being able to just try adding two potentially wildely different types together, in the hope that the authors of those objects potentially included a way to handle my problem, that simplicity of A+B gets destroyed by requiring type hints or using type checkers. As shown in the article.
FINALLY someone who gets it. (Which means they are objectively correct, of course and I will now proceed to add to this perfectly objective judgement that just so happens to coincide with my own completely objective perspective on python.)
I think typing is amazing. Strict, static, compile time typing too. What has happened with type hints is that people who came from something like that, or something that pretended to be like that, like Typescript and wanted to have their type checking safety convenience back that they got used to.
And I understand that perfectly.
But the problem is that the beauty of dynamic typing, being able to just try adding two potentially wildely different types together, in the hope that the authors of those objects potentially included a way to handle my problem, that simplicity of
A+Bgets destroyed by requiring type hints or using type checkers. As shown in the article.