Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on JVM/Java: Null-Restricted and Nullable Types. Parent comment
x?.let{f(it.y)}
Optional.ofNullable(x).map(it->f(it.y)).orElse(null);
These days I'd not even trade the simple but effective approach taken by Kotlin for the full glory of Scala's Option (which is so far beyond the Java Optional).
There are no comments on this comment yet.
These days I'd not even trade the simple but effective approach taken by Kotlin for the full glory of Scala's Option (which is so far beyond the Java Optional).