Join Slack
Powered by
Kotlin style guide recommends to use `==` instead ...
# announcements
g
gildor
01/17/2018, 1:42 AM
Kotlin style guide recommends to use
==
instead of elvis operator for nullable booleans:
it?.equals(obj) ?: false || it == obj
->
it?.equals(obj) == true || it == obj
s
spragg
01/17/2018, 2:10 AM
Thanks. I wasn’t aware of that in the style guide.
21
Views
Open in Slack
Previous
Next