Fork me on GitHub
#other-languages
<
2017-10-30
>
roberto17:10:24

I’ve had the opposite experience. I’m much more comfortable writing Kotlin than Clojure. Although clojure is fun to write, I find myself needing types as the project grows and Kotlin provides a good balance imho. The only thing that bugs me about Kotlin is how starry eyed most kotlin users are currently. But tbf, that seems to be the case with most new communities.

fellshard17:10:37

I'd definitely reach for Kotlin immediately if I had to touch anything Android-related.

roberto17:10:07

yeah, that is where they are having the largest adoption

roberto17:10:50

it also allows android FP enthusiasts to finally use some of those concepts in their apps

cfleming22:10:06

@roberto I’m not sure I’m much more comfortable writing Kotlin than Clojure, but I’m not much more comfortable writing Clojure than Kotlin either - I’d put them about the same, and I think they have different strengths. Certainly when doing a lot of Java interop (e.g. Swing or similar) Kotlin is really nice.

roberto22:10:33

What I like about Kotlin that I miss when I’m using Clojure, is the ability to use helpful ADTs that will make impossible states, impossible.

roberto22:10:23

Typical example is using some code that makes a call to an external API that may fail, I rather the code that I’m using to do that, tell me explicitly that it may happen and force me to think of the failure cases. With clojure , the compiler doesn’t tell me that. The last clojure project I worked on, I wished I had that in many places.