https://kotlinlang.org logo
t

tylerwilson

08/19/2020, 2:44 PM
How is there no common String.format yet? 😞
d

Dominaezzz

08/19/2020, 2:47 PM
c

Casey Brooks

08/19/2020, 2:47 PM
The main reason is that
String.format
is localized and internationalization is a pain and difficult to do right. It’s not something the dev team can confidently implement in common code yet. Plus, it’s much less needed when you have string interpolation available
t

tylerwilson

08/19/2020, 2:48 PM
Thank you. I get the localization issues. For now I just needed a 0 leading precision flag. I will roll my own for now.
Put in my votes for those issues too. Thanks again!
3 Views