$ ./guess_the_languageProgramming Languages
Programming Languages · hard · #583

Which programming language is this?

class Report(private val loader: () -> String) {
    val body: String by lazy { loader() }
    var title: String = ""
        private set
}

Answer: Kotlin

Swift has lazy properties too, but delegated properties with by lazy { } and an indented private set accessor are Kotlin syntax.
Play Programming Languages ▸