https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

Kris Wong

11/18/2019, 3:54 PM
it seems like there is no string formatting functionality in stdlib-common. has anyone found that?
s

serebit

11/18/2019, 4:13 PM
There is no string formatting functionality in stdlib-common, yes. This is because the different platforms have different pattern syntax for formatting iirc
k

Kris Wong

11/18/2019, 4:15 PM
true
it looks like the K/N compiler transforms a varargs argument into an array in the Obj-C interface anyway
b

basher

11/18/2019, 4:42 PM
I think Java's String formatting has localization capabilities, which complicates deciding on a common API
FWIW, we've been using the printf family on iOS when needed
3 Views