<@U0KGK0BUN>: I got better result with these code...
# announcements
r
@konsoletyper: I got better result with these codes below without lazy. I managed to update to kotlin 1.0 release version.
Copy code
class Attachment(val name: String) {
    val isValidName = name.toLowerCase().endsWith(“.jpg”)
}
But not with this:
Copy code
class Attachment(val name: String) {
    val isValidName by lazy { name.toLowerCase().endsWith(".jpg") }
}