Skip to content

[4.1][stdlib] Improve the flatMap deprecation message #14061

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

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Jan 22, 2018

  • Explanation: The generic message generated by the compiler can be read as if all the versions of flatMap are being deprecated, whereas only one particular variant of it is, the one that accepts a closure returning an optional value.
  • Scope of Issue: purely QoI, non-functional change, but is supposed to improve developer experience.
  • Risk: Minimal
  • Reviewed By: Ben Cohen
  • Testing: Automated test suite with an updated test case for the new message
  • Directions for QA: N/A
  • Radar: rdar://problem/36555646

<rdar://problem/36555646>

(cherry picked from commit aceb63e)
@moiseev
Copy link
Contributor Author

moiseev commented Jan 22, 2018

Similar to #14035

@moiseev
Copy link
Contributor Author

moiseev commented Jan 22, 2018

@swift-ci Please test

@moiseev
Copy link
Contributor Author

moiseev commented Jan 22, 2018

@swift-ci Please nominate

@moiseev moiseev merged commit 71293a8 into swiftlang:swift-4.1-branch Jan 23, 2018
@moiseev moiseev deleted the compact-message-4 branch January 23, 2018 00:48
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