Swift Macros: Derive Any Wrappers

preview_player
Показать описание

💪😭 This one's for the muscle memory. Here, we'll write a macro for deriving those fancy, complicated, semi-type-erasing, protocol Any wrapper thingies.

When something is boring + complicated + fully-deterministic, then you write a macro to teach the compiler to do your dirty work.

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

Kit your videos are the intersection of dad jokes, education, and dry humor. (ex: @7:00) - Well done!

brandonmaul
Автор

Thank you Interesting I love your voice🙂

swiftui_ux
Автор

Swift seems like a very nice language, its a shame its so niche. I would totally wanna try to use it for web apps instead of something like rust. Great video!

aloussase