[swift-users] Compiler can't infer map transfer closure return type?

Erica Sadun erica at ericasadun.com
Tue Mar 8 19:29:26 CST 2016

Honestly, I can probably type the entire 8 extra characters.

-- E, who would rather pick better battles
p.s. Pull Request: https://github.com/apple/swift-evolution/pull/191 <https://github.com/apple/swift-evolution/pull/191>

> On Mar 8, 2016, at 6:24 PM, Jordan Rose <jordan_rose at apple.com> wrote:
> Ah, I see what you mean now. I still think it's a bad idea, though—once you're in "statement mode", flow control ought to be explicit. Other languages have definitely had problems with fall-off-the-end returns <http://programmaticallyspeaking.com/why-i-hate-implicit-return-in-coffeescript.html> when it's not something people use or expect all the time.
> Per my (old) discussion on the thread Javier just brought back, @warn_unused_result ought to be catching these for you, and if not then (IMHO) that's the place to be fixing things.
> Jordan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160308/d4cbfdd4/attachment.html>

More information about the swift-users mailing list