Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Scala's Option monad versus null-conditional operator in C#. Parent comment
i.e. you should avoid:
serviceX.getServiceY().getServiceZ().getSomeValue();
But for just structured data it's not constructive to write accessor wrappers at each level. And for things like recursive data structures, it's not even possible.
There are no comments on this comment yet.
i.e. you should avoid:
serviceX.getServiceY().getServiceZ().getSomeValue();
But for just structured data it's not constructive to write accessor wrappers at each level. And for things like recursive data structures, it's not even possible.