"Unannotated single-expression closures with non-Void return types can now be used in Void contexts" yesss
Conversation
OK, you can explain. Why is that good?
1
Replying to
You end up having to add "blank returns" all over the place if you use concise closure syntax.
Replying to
But doesn't that ignore the return value? Isn't that usually bad? "non-void used in a void context". I haven't hit this.
3
Happens a lot if you try to do method-chain-y things (e.g. Cartography) or use certain overzealous APIs (e.g. JavaScriptCore).
4

