madorb
12/04/2017, 9:48 PMelizarov
12/04/2017, 9:49 PMkotlinx
things but they are not just "missing bits", but big cohesive chunks. There is nothing like Guava -- stdlib is for that.madorb
12/04/2017, 9:55 PMString?.ifNullOrBlank(altValue: String): String
) that i think could be generally useful but that aren’t in the stdlib . The various types of things that have traditionally ended up in apache commons StringUtils, DateUtils, etc. or Guava. Obviously a lot of that functionality is in the standard lib, but not all of itString.kt
with small 1-liner extension functions that i can reuse across projects, so was curious if there is any sort of community library that has traction that does the sameelizarov
12/05/2017, 7:05 AMstr?.takeUnless { it.isEmpty() } ?: altValue
String?.ifNullOrBlank
is unlikely to ever make it to stdlib, since nullable strings are very uncommon in idiomatic Kotlin code. Idiomatic Kotlin code tends to have very few nullable variables.madorb
12/05/2017, 2:25 PM