Hacker News new | ask | show | jobs
by belinder 2219 days ago
> Except for - it doesn't work with immutable classes (the ones with readonly fields).

Well good thing they're adding that in C# 9 then

1 comments

Oh, cool, I didn't notice that!

Still, they are playing catch-up here.

I mean... if you go that route then I would say Kotlin isn't really ready to be used as a production language in most places due to the severe lack of tooling, especially when it comes to things like static analysis. Sure ktlint is there, but the rules library is lacking.

So from that perspective, Kotlin is playing catch-up.

Static analysis is the only weak point of kotlin that I'm aware of.. Intellij Idea has by default something that might be considered as static analysis.

There is also detekt but it's true it is inferior to solution that Java has. https://github.com/detekt/detekt

PMD is targeting kotlin initial support for their next major release https://github.com/pmd/pmd/issues/419

I've answered a jetbrains survey recently and they revealed they are working on a new product that would be a full fledged static analyser, maybe this would solve the issue?

Discussion was about the design of the language only.