← Back to context

Comment by flossly

21 hours ago

Have you tried Kotlin? It's a less clunky Java. The syntax is IMHO Ruby-level charming (for an OO-first lang), but with types that are quite a bit stronger than Java. Java interop is quite smooth.

The comparison with Ruby is spot on.

I always thought that DSLs were the one thing Ruby did better than the competition, but Kotlin's combination of receiver lambdas plus syntactic sugar for calling higher-order functions make it an even better language to write DSLs in.

  • That's exactly how i feel about it.

    And the code I'm looking at now with Kotlin is so similar to code i liked reading when I was in a committed relationship with Ruby.