apple / swift-distributed-actors

Peer-to-peer cluster implementation for Swift Distributed Actors

Home Page:https://apple.github.io/swift-distributed-actors/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update documentation to always `default:` case open enums

ktoso opened this issue · comments

We have a number of public enums that we switch over, and people SHOULD switch over.
Some of them have _PLEASE_DO_NOT_EXHAUSTIVELY_MATCH_THIS_ENUM_NEW_CASES_MIGHT_BE_ADDED_IN_THE_FUTURE which is a workaround for the lack of "open" enums in Swift.

We should add more docs about this, and make sure our docs always switch with a default: too

This is a workaround for https://forums.swift.org/t/extensible-enumerations-for-non-resilient-libraries/35900/36