3 ms·
What Rust could learn from Kotlin
- Zababa 5y agoMy comment from the last time this was posted: https://news.ycombinator.com/item?id=28805302 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.
- lucasyvas 5y agoRelevant Reddit comment thread: https://www.reddit.com/r/rust/comments/q2oe5c/what_rust_could_learn_from_kotlin/ https://www.reddit.com/r/rust/comments/q2oe5c/what_rust_coul...
- antifa 5y agoclass 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.