3 ms·
Yeah I agree most of the pain of types comes from the ways they're implemented (especially in early C++/Java etc) Hence my beef with them. PyLint (as an exampl
by raverbashing 6y ago
Yeah I agree most of the pain of types comes from the ways they're implemented (especially in early C++/Java etc)
Hence my beef with them. PyLint (as an example) can deduce and type check your program for you. Why do I need to annotate the types for every single thing? Python is not exactly a weakly typed language if you go down the details.
So if the compiler knows (or even worse in the case of Java: the IDE knows), why do I need to tell it that? Then you end up with the cases of several prototypes for the same function for things that are essentially the same.
I can understand type annotations for documenting interfaces. Those make sense.