result builder transform
Swift โฉ Attributes โฉ Result Builders โฉ
Canโt use break, continue, defer, guard(๐ โ), return, while, do-catch in the code (usaully the body of a closure) that a result builder transforms.
The transformation process doesnโt change declarations in the code, which lets you use temporary constants and variables to build up expressions piece by piece.
It also doesnโt change throw statements, compile-time diagnostic statements, or closures that contain a return statement.
Swift Evolution โฉ Result Builder โฉ result builder transform
Swift Reference โฉ Attributes โฉ Declaration Attributes โฉ resultBuilder โญ๏ธ
Last updated
Was this helpful?