3 ms·
OMG, yes! maybeNull?.getContent()?.toString() This would improve my coding sooo much. Currently I use Optional.fromNullable(maybeNull).orElse(new DummyObject
by kuschku 11y ago
OMG, yes!
maybeNull?.getContent()?.toString()
This would improve my coding sooo much.
Currently I use Optional.fromNullable(maybeNull).orElse(new DummyObjectThatReturnsNullOnAllMethodCalls).getContent(), and then repeat the process.
- DiThi 11y agoI use "?" constantly in coffee-script. And while I missed ++ for a while in Python, I don't use it in coffee even though it's available.