5 comments

[ 3.2 ms ] story [ 22.3 ms ] thread
My comment from the last time this was posted: https://news.ycombinator.com/item?id=28805302

In short: don't try to write Kotlin in Rust! Some of these points are limitations of the languages, but most of them are you not knowing what idiomatic code is, or all the languages features. That's fine, everybody is still learning. But don't call your article "What Rust could learn from Kotlin", the one that could learn here is you.

> Rust is Rust, and Kotlin is Kotlin.

Basically, it is what it is?

    class Window(x: Int, y: Int, visible: Boolean = false, blackAndWhite: Boolean = false)
This code sample from the article is almost a valid class declaration in crystal.