[swift-evolution] Method cascading (was Re: Request for Discussion: Setup closures)

Brent Royal-Gordon brent at architechies.com
Mon Dec 7 01:10:27 CST 2015

> But I would prefer another approach over a new keyword:
> context.{
> moveTo(x: 23, y: 42)
> lineTo(x: 0, y: 0)
> }

I would worry that the dot is very, very subtle and easy to miss when reading this code, particularly given that you would expect a space there.

Brent Royal-Gordon

More information about the swift-evolution mailing list