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.

-- 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] 
>> <mailto:[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