[swift-evolution] Reconsidering SE-0003 Removing var from Function Parameters and Pattern Matching

Dave Abrahams dabrahams at apple.com
Sun Jan 24 12:31:12 CST 2016

on Sun Jan 24 2016, David Owens II <swift-evolution at swift.org> wrote:

> Removing var from function params, I get that. But the if-binding is
> unfortunate. It's literally a line of code for the sole purpose of
> making the compiler happy.

That's not the purpose; even though I am not a fan of prohibiting "var"
there, I understand that the purpose of doing so is avoiding confusion,
because some people believe they are getting a reference through which
to mutate the contents of the original optional.


More information about the swift-evolution mailing list