[swift-evolution] Lambda function syntax
alexreg at gmail.com
Wed Dec 23 11:07:44 CST 2015
Virtually everyone agrees `=>` is a much clearer delimiter/separator. `in` is too textual and not easy enough to distinguish from following code.
Also, other languages (e.g. C#) have no problem with the `=>` symbol, as anyone with even a little experience programming knows greater-than-or-equal to is `>=`.
However, if we adopt the new function type specifier syntax (replacing `->` with `:` for the return type), then `->` could be used in place of the `in` keyword, to make you happier.
> On 23 Dec 2015, at 04:11, Ricardo Parada <rparada at mac.com> wrote:
> I think "in" is slightly easier to type in than "=>".
> The => may be interpreted as equal or greater than.
> On Dec 22, 2015, at 9:52 PM, Andrey Tarantsov via swift-evolution <swift-evolution at swift.org> wrote:
>>> And yes, I certainly would prefer `=>` rather than `in`.
>> It seems like the community can actually agree on this.
>> Does anyone know if it has any parsing problems / grammar implications right now?
More information about the swift-evolution