Learning Kotlin

Kotlin variable, to be Lazy, or to be Late?

Decide which is better to use in which circumstances

Photo by Robert Anasch on Unsplash

In Kotlin, we are now introduced to two new features of an old concept, lazy initialization i.e. the deferring of a variable initialization to a later time. This is a very handy feature, as we don’t need to initialize something that until we need it…

--

--

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