Inline Functions: inline, crossinline, and noinline

Описание к видео Inline Functions: inline, crossinline, and noinline

Most of us understand the basics of what it means to inline a function, but in Kotlin, there are some nuances that affect how you can use lambdas that are passed to them. In this video, we'll cover the basics of inline functions, and then learn about those nuances - and how we can use crossinline and noinline to get the behavior that we want.

✨ New to Kotlin? Start your journey here: https://typealias.com/start/
... or pick up the new Leanpub Edition for offline access and more! https://book.typealias.com/

🚀 Get the inside scoop on everything I'm working on - join my brand new email newsletter!
Sign up here: https://newsletter.typealias.com/

00:00 Introduction
00:24 Basics of Inline Functions
03:31 Non-Local Returns
04:58 Nesting Inline Lambda Parameter Calls with crossinline
07:33 Referencing Lambda Parameters with noinline
09:22 Summary of inline, crossinline, and noinline
10:32 Closing Thoughts and Additional Resources

Комментарии

Информация по комментариям в разработке