News for hackers. Stuff that matters.
Re:Kotlin 1.4 by on_and_off on Tuesday August 18, 2020 @02:16PM (#24202150)
as somebody who has written a lot of java and kotlin, often I prefer the most explicit option.

Code will be mostly read, not written, so if something will make a junior (or in some cases even seasoned) dev scratch their head to be understood, it is best avoided.

EG Often I prefer writing an "if != null else" instead of chaining takeIf{}s.

There are no comments on this comment yet.