<@U1AMZJS4X>: my simple rule of thumb is, only use...
# announcements
k
@cypher121: my simple rule of thumb is, only use receiver lambdas when the receiver you pass into it is the same as the receiver you called the method on. good:
Copy code
inline fun Foo.applyTransaction(block: Foo.() -> Unit)  {
    beginTransaction()
    block()
    commitTransaction()
}
bad:
Copy code
inline fun Foo.configureAndExecute(config: Bar.() -> Unit) = execute(Bar().apply(config))
👍 2