Join Slack
Powered by
<@U0B89PWE4>: Depends on your code, I guess, do yo...
# announcements
c
Czar
11/14/2015, 10:30 PM
@dsvoronin
: Depends on your code, I guess, do you need this logic in many places? What is more readable to you and your team:
val listC = listA.switchIfEmpty(listB)
or
val listC = if(listA.isEmpty()) listB else listA
? Will every team member always remember to use that function or both variants will accumulate in the code?
👍 1
4
Views
Open in Slack
Previous
Next