Open in app
Roman Elizarov
7.3K Followers
About

Sign in

7.3K Followers
About
Open in app
Great article!
1

Kamil Dziadek

Roman Elizarov

Roman Elizarov

Feb 10, 2020·1 min read

Both ways work and the choice between them is mostly the matter of style in your project as a whole.

Written by

Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

More from Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

More From Medium

Kotlin and Exceptions

Roman Elizarov

A Tribute to Java

Roman Elizarov

Null is your friend, not a mistake

Roman Elizarov

Deep recursion with coroutines

Roman Elizarov

Phantom of the Coroutine

Roman Elizarov

Programming Binary Search

Roman Elizarov

Shared flows, broadcast channels

Roman Elizarov

Functional Programming is on the rise

Roman Elizarov

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store