Will `String.format` be available in native?
# kotlin-native
a
Will
String.format
be available in native?
👍 3
a
I was able to use typical $field within the string in Kotlin-native. Is there a specific use you are looking for String.format?
a
Not a specific thing, would have been nice to have a java like formatting system in K/N
a
Perhaps you should look at Kotlin's formatting system instead for Kotlin native. The Kotlin std-lib is implemented in K/N
a
Platform and version requirements: JVM
Checked it
m
There is
platform.posix.snprintf
, but it's not exactly the same - outputs utf-8 string to preallocated C buffer.
a
I see
I heard there are plans to combine it with the string template system
a
@Aregev2 Please submit a feature request here: http://kotl.in/issue
a
623 Views