What's the deal with `capitalize` being deprecated...
# general-advice
c
What's the deal with
capitalize
being deprecated, especially with such a verbose replacement? Capitalizing a string is really common, and it's so weird to remove it from the standard lib entirely. Same thing with the other uppercase/lowercase methods for String and Char. Every deprecated method literally uses the exact same behavior as the "better" version on the JVM, yet they're still deprecated?
e
it's not the same behavior. note
Locale.default()
which matches Java behavior but isn't multiplatform and has been considered a misdesign
e
There's an interesting article of Sam Cooper about a localization issue: https://sam-cooper.medium.com/the-country-that-broke-kotlin-84bdd0afb237
c
It's also mentioned in this short talk:

https://www.youtube.com/watch?v=lxoKilLSJ4k

t
@El Anthony thanks for the link, that's a great well detailed article! I still think it's annoying to not have a function for that but at least now I know the reason behind it haha