1 min readJul 19, 2017
Consider using with (user.address) { ... }
instead of `val {street, city, state} = user.address`. It requires less typing and you will not have to violate DRY principle.
Consider using with (user.address) { ... }
instead of `val {street, city, state} = user.address`. It requires less typing and you will not have to violate DRY principle.
Project Lead for the Kotlin Programming Language @JetBrains