Apologies if this question isn’t really appropriate for this community, but Rust and Kotlin are my two favorite programming languages, and currently, I use both for different projects. However, I’m curious as to if people here think Kotlin still has a place when Rust exists? I’m specifically speaking architecturally: disregarding existing legacy code or support, do you think in the future, the Rust platform should replace the Kotlin platforms (JVM, LLVM Native, Android, Web) for everything Kotlin can do, or do you think Kotlin can do some things better than Rust?

  • Ephera
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 years ago

    kotlin is probably the best of them in terms of syntax.

    I like Scala the best. It has a big learning curve and some very un-C-like symbols, but it writes a lot like Rust and as its name implies, it tries to be scalable, so it gives you tools to extend the language and write DSLs, without resorting to macros. So, yeah, really powerful, albeit you need to be a language enthusiast to fully appreciate it.

    Among colleagues, we often joke that Kotlin is a quarter of the way from Java to Scala (and they must’ve taken Scala as an inspiration for a lot of language features).

    Here’s some random example code: https://rosettacode.org/wiki/FizzBuzz#Scala