https://kotlinlang.org logo
#announcements
Title
# announcements
a

arild

12/06/2017, 12:35 PM
I would like to hear opinions on explicitly returning Unit from a method to indicate an intentional no-op implementation, e.g.
override fun onCompleted() = Unit
👍 1
s

sindrenm

12/06/2017, 12:39 PM
I like this approach. It makes it easy to see for later/others that this function is intentionally left as a no-op.