Re:Detekt – A static code analyzer for Kotlin
by PaulHoule on Thursday July 24, 2025 @09:10AM
(#44670243)
Java has also improved greatly since JDK 7 so the need for JDK languages that are Java, but just a little better, is less than it was.
[ Parent
| on HN ]
Re:Detekt – A static code analyzer for Kotlin
by smith7018 on Thursday July 24, 2025 @09:16AM
(#44670322)
Kotlin is much better than "Java, but just a little better."
Kotlin has everything. A language isn't better just because it has more.
Its great for DSLs though.
Re:Detekt – A static code analyzer for Kotlin
by PaulHoule on Thursday July 24, 2025 @10:13AM
(#44670948)
Java is pretty good for DSLs too.
Re:Detekt – A static code analyzer for Kotlin
by ohdeargodno on Thursday July 24, 2025 @01:23PM
(#44673417)
Language.Builder().getOh().getYes().getJava().getIsSoNice().setFor(() -> { return "DSLs";});
No trailing lambdas, no infix operators, no @DslMarkers, no top level functions, and an infinite list of examples of Java verbosity making even the smallest thing look like an ancient greek epic. Java is utterly terrible for DSLs.
Re:Detekt – A static code analyzer for Kotlin
by vips7L on Thursday July 24, 2025 @01:47PM
(#44673749)
Language {
oh {
yes {
Java {
isSoNice
}
}
}
You can contrive awfulness in any language.
Re:Detekt – A static code analyzer for Kotlin
by PaulHoule on Thursday July 24, 2025 @04:00PM
(#44675337)
The awfulness of one style of Java DSL is the awfulness of Lisp, that is
building(of(S("expressions"),everything())
Re:Detekt – A static code analyzer for Kotlin
by vips7L on Thursday July 24, 2025 @06:30PM
(#44677083)
Not going to lie, my brain doesn't really comprehend lisp. So the joke (or point?) is way over my head.
Re:Detekt – A static code analyzer for Kotlin
by BrandonSmith on Thursday July 24, 2025 @10:15AM
(#44670977)
Kotlin ecosystem extends way beyond the Java runtime. I have apps developed in Kotlin running in browsers and iOS, in addition to Android.