4 ms·
What features that Javas type system provides does pythons lack? I can name dozens that python has that Java doesn't. My point is that if you include cpp or ja
by joshuamorton 4y ago
What features that Javas type system provides does pythons lack?
I can name dozens that python has that Java doesn't. My point is that if you include cpp or java or golang the statement becomes false. Python's type system is actually generally speaking more robust than those (cpp is comparable, but I don't think python's is worse).
So I'm asking, be specific what capabilities does mypy lack that cpp or java or golang provide? Keep in mind, mypy supports literal types, limited dependent types, dynamic-duck typing (protocols), limited contract types, and more. Java doesn't, go doesn't. Cpp supports some of those but it requires arcane incantations.