Recently I've found really great thing in kotlin s...
# stdlib
a
Recently I've found really great thing in kotlin stdlib. TODO! But currently it has two overloaded versions:
Copy code
public fun TODO(): Nothing = throw NotImplementedError()

public fun TODO(reason: String): Nothing = throw NotImplementedError("An operation is not implemented: $reason")
How about making only one version? Something like:
Copy code
public fun TODO(reason: String? = null) = throw when (reason) {
    null -> NotImplementedError()
    else -> NotImplementedError("An operation is not implemented: $reason")
}
Single version will make
Find Usages
simplier.
👍 4