Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

The Python versus Java comparison is a red herring, I think. While Java is more verbose than Python, and some of that verbosity is from its type system, not all of it is.

A better comparison would probably be Python versus Scala, or Python versus OCaml.



It's a surprisingly common fallacy to equate Java with Type Systems.

Type systems can be far more expressive than what is available in Java, and can and should be used to enforce program correctness, reducing the necessity for additional testing.

Type inference, polymorphic typing, structural types -- the available tools in a comprehensive type system are woefully under-explored by most practitioners who consider Java to epitomize type systems.


True, but I speak of which I know. If someone has such a comparison, I would love to see it. The real measure is tokens not LOC.


Then your knowledge may be too constrained to derive sufficiently representative generalizations.

I can highly recommend:

http://www.xoltar.org/old_site/misc/static_typing_eckel.html...

The article (from 2003!) is an excellent treatise on the value of a proper type system as compared to Python, and moreover, how Java's type system (or C++, ...) should simply not be equated with "static typing".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: