Skip to content

Add unlabeled view to CasePath - #261

Open
stephencelis wants to merge 1 commit into
protocol-case-pathsfrom
unlabeled-values
Open

stephencelis wants to merge 1 commit into
protocol-case-pathsfrom
unlabeled-values

Conversation

@stephencelis

Copy link
Copy Markdown
Member

Swift considers labeled tuples and unlabeled tuples distinct, which can cause issues with generic code around case paths, as well as parameter packs, and this is a real regression in usability in swift-parsing. This branch adds an "unlabeled" view to the CasePath protocol so that libraries like swift-parsing can build over the raw tupled types, instead.

Swift considers labeled tuples and unlabeled tuples distinct, which can cause issues with generic
code around case paths, as well as parameter packs, and this is a real regression in usability in
swift-parsing. This branch adds an "unlabeled" view to the `CasePath` protocol so that libraries
like swift-parsing can build over the raw tupled types, instead.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant