Sent from my iPhone

> On Mar 17, 2016, at 11:49 AM, Erica Sadun <[email protected]> wrote:
> 
> The three reserved words are, if memory serves: let, var, and inout
> 
> var is gone. this would kill let. and `inout` is moved to modify types.

So by upending this part of the language we've managed to remove the special 
cases for argument labels. I view that as success. 

  - Doug


> 
> -- E
> 
> 
>>> On Mar 17, 2016, at 12:26 PM, Douglas Gregor via swift-evolution 
>>> <[email protected]> wrote:
>>> 
>>> 
>>> On Mar 17, 2016, at 11:22 AM, Harlan Haskins <[email protected]> 
>>> wrote:
>>> 
>>> Since we’re allowing keywords as argument names, shouldn’t this:
>>> 
>>> func foo(let i: Int)
>> 
>> Right now, you’d have to declare this as
>> 
>>   func foo(`let` i: Int)
>> 
>> but the proposal would fix that.
>> 
>>> be allowed, such that it’ll be called as this:
>>> 
>>> foo(let: 3)
>> 
>> Right.
>> 
>>      - Doug
> 
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to