Re:Why Go and Not Rust?
by bluejekyll on Monday September 16, 2019 @10:18AM
(#20984237)
You might want to look at Kotlin, though the mutability options aren’t as good as Rust’s.
[ Parent
| on HN ]
Can you describe (or link) a scenario where more advanced mutability options would be preferred / better practice?
Re:Why Go and Not Rust?
by bluejekyll on Monday September 16, 2019 @11:24AM
(#20984974)
This article looks pretty good: https://blog.stylingandroid.com/kotlin-mutability/
I would describe the difference between Rust and Kotlin as: Rust offers control over interior mutability and guarantees that there is only ever one mutable reference at a time—Kotlin offers exterior mutability control, not all that dissimilar from final in Java or const in C/C++, but it is better.