Replies: 1 comment
-
I don't know much about Kotlin. As a basic component package, I feel that bundling a kotlin-stdlib is not friendly to java developers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe a bit silly from me but after reading the code at mica-mongo thought moving some small packages like that to Kotlin would be nice. Not only would make the code less verbose at points like here where you can change the whole
else if
block for awhere
block. But you can also take advantage of Kotlin null safety going frompublic Document convert(@Nullable ObjectNode source) { return source == null ? null : Document.parse(source.toString()); }
tofun convert(ObjectNode source?):Document? = Document.parse(source?.toString())
Beta Was this translation helpful? Give feedback.
All reactions