Skip to content

Document forced unwrapping#2732

Merged
plajjan merged 1 commit into
mainfrom
guide-forced-unwrapping
Apr 18, 2026
Merged

Document forced unwrapping#2732
plajjan merged 1 commit into
mainfrom
guide-forced-unwrapping

Conversation

@plajjan

@plajjan plajjan commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

Extend the optionals guide with forced unwrapping for !. and ![...], including how mixed ? and ! chains behave and when a failed unwrap raises ValueError. The optional chaining section now shows a chained method call, clarifies that the whole chain stays optional, and explains that separate handling is only needed once the result leaves the chain.

Extend the optionals guide with forced unwrapping for `!.`
and `![...]`, including how mixed `?` and `!` chains behave
and when a failed unwrap raises `ValueError`. The optional
chaining section now shows a chained method call, clarifies
that the whole chain stays optional, and explains that
separate handling is only needed once the result leaves the
chain.
@plajjan plajjan enabled auto-merge April 18, 2026 12:18
@plajjan plajjan merged commit 151dfc9 into main Apr 18, 2026
41 of 42 checks passed
@plajjan plajjan deleted the guide-forced-unwrapping branch April 18, 2026 12:52
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