Can extension functions, which are offered by Kotlin, be seen as a replacement for Utility classes and by that utility methods? At least most of the time not always
k
karelpeeters
07/27/2019, 1:25 PM
Yes, that's basically the point.
l
LeoColman
07/27/2019, 2:06 PM
Old habits die hard, I put extensions in files like
StringUtils.kt
p
pg
07/27/2019, 2:18 PM
@LeoColman I don't think it is a bad practice. You keep and maintain code in single place, furthermore you can split extension fun by Target or responsibility