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

Quinn "The Eskimo!" eskimo1 at apple.com
Mon Jan 25 03:54:46 CST 2016

On 25 Jan 2016, at 03:25, Dave Abrahams via swift-evolution <swift-evolution at swift.org> wrote:

> On 25 Jan 2016, at 01:44, Charles Srstka via swift-evolution <swift-evolution at swift.org> wrote:
>> But that’s not what assigning something to a var means in any other context. Why should it be any different here?

> I made the same argument myself, but you can't argue with empirical
> evidence: some people have been tripped up by this anyway.

One explanation might be that these folks have a Pascal heritage, where "var" is (roughly) equivalent to Swift's "inout".

Share and Enjoy
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

More information about the swift-evolution mailing list