I'm hoping to override the default behavior of zeroing an invalid UUID string. (For example, I might prefer to throw an exception or return null.)
Does this constitute a new feature request?
primitive {
try {
UUID.fromString(it)
} catch (e: IllegalArgumentException) {
null
} ?: UUID(0, 0)
}