Mutable vals in Kotlin



When I first learned Kotlin, the difference between val and var seemed simple: val means immutable and var means mutable. The truth is more nuanced than that: val does not mean immutable, val means read-only.

from Pocket http://ift.tt/2rfILxL
via IFTTT

このブログの人気の投稿