Swift 5.3 introduces a bunch of improvements for Function Builders (now called Result Builders). In this video we do a deep dive into this amazing feature and check everything that has to offer. Old and new.
0:00 Introduction
0:55 Creating the ExampleBuilder
3:35 @_functionBuilder
4:34 typealias
5:25 buildBlock and buildExpression
7:30 Support if conditions with buildIf and buildEither
8:56 Support do with buildDo
11:28 buildFunction
12:21 Multiple overloads
14:05 Building our own looping DSL
15:31 Swift 5.3: if with multiple expressions
16:28 Swift 5.3: if available
17:05 Swift 5.3: local let and var
18:32 Swift 5.3: if let and case let
21:00 Swift 5.3: switch
21:44 Swift 5.3: for loops
24:08 Conclusions
———————————————————————————————
Web: https://alejandromp.com
Twitter: / alexito4
Thumbnail background photo by Xavi Cabrera on Unsplash