First of all, Kotlin is awesome!
Second, it’d be cool if we could have something similar to smart cast, that is declaring a
val (thread safe) inside the
if statement and use it directly in the body
if( val email = client?.personalInfo?.email != null && message!=null) mailer.sendMessage(email, message)