Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Nov 20, 2025

Replace usages of Optional.map and Optional.flatMap by if expressions or other expressions.

I personally find Optional.map to be hard to read because map implies mapping a collection to me. Usually the alternative constructs seem clearer to me.

Replace usages of `Optional.map` and `Optional.flatMap` by if expressions or other expressions.

I personally find `Optional.map` to be hard to read because `map` implies mapping a collection to me. Usually the alternative constructs seem clearer to me.
@ahoppen
Copy link
Member Author

ahoppen commented Nov 20, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Nov 20, 2025

@swift-ci Please test Windows

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.

2 participants