[swift-evolution] Proposal: helpers for initializing properties of same name as parameters

Chris Lattner clattner at apple.com
Sun Dec 6 00:34:55 CST 2015


> On Dec 5, 2015, at 6:58 PM, David Waite via swift-evolution <swift-evolution at swift.org> wrote:
> 
> There is also a set keyword in the language already, although today its use is limited such that it may still be used as an identifier in non-conflicting contexts.

FWIW, “set” is a context sensitive keyword, not an actual keyword.  You can see the list of actual keywords here:

https://github.com/apple/swift/blob/master/include/swift/Parse/Tokens.def

-Chris

> 
> -DW
> 
>> On Dec 5, 2015, at 7:51 PM, Brent Royal-Gordon <brent at architechies.com> wrote:
>> 
>>> I don’t believe any more so than for let or var, which this effectively is a complement for.
>> 
>> There is no Let or Var type in the standard library, but there is a Set type. “Set” has many meanings, and some of them are relatively likely to be used as parameter keywords.
>> 
>> -- 
>> Brent Royal-Gordon
>> Architechies
>> 
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list