Did you know that you call regular functions - and even property setters - as if they were extension functions? In this video, I talk through standard function types, extension function types, bound references, and property references - and we'll pick up some fun tricks along the way!
https://www.youtube.com/watch?v=eXT1wglHAQo▾
👀 4
👍 5
❤️ 1
k
Klitos Kyriacou
11/14/2024, 9:50 AM
Nice video, thanks! I think the ability to treat functions with/without receiver interchangeably is one of the most unintuitive aspects of Kotlin, along with the ability to put
?.
on the left-hand side of an assignment.
d
Dave Leeds
11/15/2024, 5:00 PM
Thanks @Klitos Kyriacou! Yes, it's one that I think could be confusing depending on how it's applied