3 ms·
This is exactly what bothered me with this article but I couldn't put it into words: > That said, yes, adding types to an API that wasn't implemented with a ty
by mynameisvlad 4y ago
This is exactly what bothered me with this article but I couldn't put it into words:
> That said, yes, adding types to an API that wasn't implemented with a typing system in mind can be challenging.
The title is just straight up clickbait. Type hinting doesn't suck, adding types to an existing project used by users who have accustomed themselves to an untyped system that lets them do whatever sucks. If this were typed as int, int from the get go, the article would be a hell of a lot shorter.