3 ms·
I don't see how it could be interpreted as a joke. I've given up Java because of its verbosity, but anything that reduces it is a win.
by m0th87 17y ago
I don't see how it could be interpreted as a joke. I've given up Java because of its verbosity, but anything that reduces it is a win.
- jrockway 17y agoI chuckled at the function that takes an object as an argument and returns the same object as the result. Yes, I know it throws an exception if it's null... but when your id function has side effects, it's a sign that your language is Just "not that great".
- blueag 17y agoCan you give some examples of how other languages handle null?
- jganetsk 17y agoThe id function in Java has no side effects... public <T> T id(T t) { return t; } That's an id function. It works fine with nulls. Where did anyone say that java.util.Objects was providing an id function anyway?