4 ms·
And especially not if you have type erasure. Java makes you type class names, and the compiler makes you cast things, as for it being a statically typed langua
by fleitz 13y ago
And especially not if you have type erasure.
Java makes you type class names, and the compiler makes you cast things, as for it being a statically typed language, I'm not really sure.
As with most things java it's a lot of typing for not a lot of accomplishing anything useful, but somewhat better than C.
OCaml/F#/Scala have far better type systems that check a lot more things, and require less typing.
- EdwardDiego 13y ago> OCaml/F#/Scala have far better type systems that check a lot more things, and require less typing. Sure, Java's type system isn't that awesome. But it's better than not having compile time type checks.
- mwcampbell 13y agoThe static type system is still worth something for packaged client-side applications, as long as you avoid reflection. The GWT compiler (for web apps) and ProGuard (for Android apps) can do very thorough tree-shaking, because they know which code is used and which isn't.
- waps 13y agoGWT is by far my favorite way of writing javascript. It's work to get it working, but it's ironclad, has client-server RPC built in, and works on pretty much any browser out there.