Swift Clips: Key paths and functions

preview_player
Показать описание
Let’s take a look at how Swift’s key paths work, and how they relate to functions — both in terms of what comes built into the language itself, and what kind of utilities that we can write ourselves to form some really nice convenience APIs.

Рекомендации по теме
Комментарии
Автор

We need more videos, John! Your videos are by far the best.

djkim
Автор

Nice, glad you started a YouTube channel.

abrahamlincoln
Автор

This went dark really quick, haha

Need more in-depth videos like this John

MrTalhakhan
Автор

Wow, this video is super useful and easy to understand. Thanks John!

bennychewDev
Автор

Still confused a bit regarding benefits of using this in many instances.. like how, for example, product[keyPath: \.Product.kind] is better than product.kind = .iphone ?

jackcarter
Автор

Is there any benefit to using keypaths as functions in map operations? Performance? Readability?

petersuvara
Автор

Thanks for the video. It's informative.

suneethchakravarthy
Автор

Could we say that key-paths are actually Lenses?

EmilioOjedaMX
Автор

I can't think of a case where I would have to use key paths or it would be very complicated without key paths

watchit
Автор

Like always you are amazing. Thank you

problem.solver