RSSAmplifier

Ray Fix’s Blog · Jul 27, 2021

Extensible API in Swift

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

A Swift enumeration case lets you clearly spell out a mode of operation in the call site of a function. The downside is that by their nature they are “closed” and can’t be extended from outside the library they are declared. Once you define then, that’s it, they can’t be extended without another release. Recent additions to Swift 5.5 give you more tools fore creating API that is both ergonomic and…

Read on /2021/07/27/extensible-api-swift.html

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.