Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add case path for optional chaining #141

Merged
merged 2 commits into from
Jan 8, 2024
Merged

Add case path for optional chaining #141

merged 2 commits into from
Jan 8, 2024

Conversation

stephencelis
Copy link
Member

While #139/#140 added support for flattening optionals, this PR adds support for chaining into optionals. This is useful for when an API takes a case key path to an optional value, but you want to chain into another value and keep things optional.

@stephencelis stephencelis changed the title Optional chain Add case path for optional chaining Jan 6, 2024
@stephencelis stephencelis merged commit 6c533b1 into main Jan 8, 2024
5 checks passed
@stephencelis stephencelis deleted the optional-chain branch January 8, 2024 19:21
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.

None yet

2 participants