Roman Elizarov
1 min readJan 25, 2018

--

When you write your own Kotlin DSL I’d recommend to reconsider your Javisms and stick with simpler and more straightforwrad naming approach for your listeners/handlers. One, that is more in Kotlin style:

cancelImage.onClick { dismiss() }

--

--

Roman Elizarov
Roman Elizarov

Written by Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

Responses (1)