[swift-evolution] Lambda function syntax

Tino Heth 2th at gmx.de
Thu Dec 24 04:44:52 CST 2015

> I'm completely against replacing '->' by ':' it would make unreadable the declaration of a function taking a closure as parameter, or returning one (among other things).

That's definitely right: Two different separators only shift the problem by one level, but hopefully it won't become common to deal with "functions having functions as parameters that have function parameters that… ;-)
Also there is the different meaning of ":" ("is a...") and "->" ("returns a…")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151224/b35b8de6/attachment.html>

More information about the swift-evolution mailing list