Did you know that you call regular functions - and...
# feed
d
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
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
Thanks @Klitos Kyriacou! Yes, it's one that I think could be confusing depending on how it's applied