4 ms·
You might want to look at Kotlin, though the mutability options aren’t as good as Rust’s.
by bluejekyll 7y ago
You might want to look at Kotlin, though the mutability options aren’t as good as Rust’s.
- asdf21 7y agoCan you describe (or link) a scenario where more advanced mutability options would be preferred / better practice?
- bluejekyll 7y agoThis article looks pretty good: https://blog.stylingandroid.com/kotlin-mutability/ 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.