3 ms·
Java has a lot more boilerplate—or near boilerplate—than the others. For example, you probably want to implement some kind of toString method, if only for your
by mattkrause 8y ago
Java has a lot more boilerplate—or near boilerplate—than the others. For example, you probably want to implement some kind of toString method, if only for your own sanity during debugging. You can do that in Python, but __str__ is often good enough.
I also wonder how many Java "lines" are just a closing brace or something trivial.
- chii 8y agoand haskell is even smaller - `deriving show` and `deriving eq`!