Skip to content

[stdlib] Improve the flatMap deprecation message #14035

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 22, 2018

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Jan 19, 2018

rdar://problem/36555646

@moiseev
Copy link
Contributor Author

moiseev commented Jan 19, 2018

@swift-ci Please smoke test

@airspeedswift
Copy link
Member

I wonder whether it should read "this variant of flatMap is deprecated"

@jrose-apple
Copy link
Contributor

That part comes from the compiler. It'd have to detect that there were other possible flatMaps around, or we'd have to add a flag to the availability attribute.

@airspeedswift
Copy link
Member

Oh right. I wonder if there’s any non-tortured phrasing to increase the clarity that it’s just this one not all flatmaps. But this might be as clear as we can get.

@jrose-apple
Copy link
Contributor

I mean, please do file a JIRA, but it's probably not something we're going to prioritize.

@airspeedswift
Copy link
Member

What I mean is, if there's another way to word our deprecation to somehow signal this. But I suspect there probably isn't, and let's take this in the meantime as it's definitely better than what we have.

@moiseev
Copy link
Contributor Author

moiseev commented Jan 22, 2018

@jrose-apple FYI https://bugs.swift.org/browse/SR-6806

@moiseev moiseev merged commit b1e37b9 into swiftlang:master Jan 22, 2018
@moiseev moiseev deleted the compact-message branch January 22, 2018 18:29
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.

3 participants