Benjamin Monjoie
Jul 10, 2017 · 1 min read

Effective Java is indeed a book I still need to read but it’s on my todo :)

I’m not sure I understand what you mean, based on what I know, I would prefer to use apply to set values on my object rather than with/run. Kotlin’s documentation is not entirely clear on that one (IMHO) : https://github.com/JetBrains/kotlin-web-site/blob/yole/styleguide/pages/docs/reference/coding-conventions.md#using-scope-functions-applywithrunalsolet

In any case, my “wondering” was also a way to present lambdas with receiver :) but thank you for your comment, I’ll pay extra attention when reading Effective Java when he talks about with ;)

    Benjamin Monjoie

    Written by

    Android developer by day, procrastinator by night