News for hackers. Stuff that matters.
Re:Kotlin vs. Java by jeroenhd on Tuesday December 17, 2019 @03:49AM (#21811844)
This works in this case, but the pattern is less easy when the result is not a boolean.

But I agree, in this specific case using a ternary operator after a null check is probably easier.

There are no comments on this comment yet.