4 ms·
You would probably like Java 1.4
by gnarbarian 7y ago
You would probably like Java 1.4
- masklinn 7y agoThis pattern (newtyping) is a huge weakness of Java in general, and even more so older Java, and people who like newtyping are not going to like java. Because creating newtypes in Java is 1. verbose, defining a trivial wrapper takes half a dozen lines before you've even done anything 2. slow, because you're paying for the overhead of an extra allocation and pointer indirection every time, unless you jump through unreadable hoops making for even more verbose newtypes[0] It is a much more convenient (and thus frequent) pattern in languages like Haskell. Or Rust. [0] https://gist.github.com/jbgi/d6b677d084fafc641fe01f7ffd00591c https://gist.github.com/jbgi/d6b677d084fafc641fe01f7ffd00591...
- DannyB2 7y agoI use Java 14 now. Java 11 in production.