4 ms·
Can you describe (or link) a scenario where more advanced mutability options would be preferred / better practice?
by asdf21 7y ago
Can 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.