Help: The data block API in a swifty way

This is a good article on the “builder pattern” style of API design in Swift, including an example of doing so with generics. This might provide for a close translation of the Python data block API style: https://www.swiftbysundell.com/posts/using-the-builder-pattern-in-swift

3 Likes