Roman Elizarov
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.

--

--

Roman Elizarov
Roman Elizarov

Written by Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

Responses (1)