alexander.asanov
10/07/2015, 12:15 PMpublic 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:
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.