Why does ByteString need an unused `dummy: Any?` p...
# io
k
Why does ByteString need an unused
dummy: Any?
parameter which is always null? https://github.com/Kotlin/kotlinx-io/blob/master/bytestring/common/src/ByteString.kt#L81
👀 3
e
I assume so that it can be disambiguated from
ByteString(data: ByteArray)
k
Yeah rather than a constructor type function I hope the maintainers end up going with
fun ByteArray.toByteString()
e
it's consistent with
String
this way though