I was recently looking at the implementation of th...
# getting-started
k
I was recently looking at the implementation of the
split
method, and what caught my attention was the condition:
if (!delimiter.isEmpty())
Why isn't the
isNotEmpty()
method used instead of ? I've seen this function used elsewhere.
l
You'd have to ask the developer, but it really doesn't matter. The end result is the same.
k
Yes, but in code like Kotlin, I think uniformity of implementations is more important than in code from non-library projects.