[swift-evolution] Unify `static` and `class` keywords

Chris Lattner clattner at apple.com
Tue Dec 8 23:37:18 CST 2015

> On Dec 8, 2015, at 7:51 AM, Ling Wang via swift-evolution <swift-evolution at swift.org> wrote:
> Yes, the `static` is badly overloaded with many different meanings:
> 1. static storage (old, from C)
> 2. static linking (old, from C)
> 3. final (new in Swift)

static means something like 9 different things in C, including the little known C99 static array parameter size use.  That said, it is not overloaded in swift, and its use in Java and C# is very similar to that in Swift.  Further, again, I have not heard of any problems in practice with the use of the static keyword here.


More information about the swift-evolution mailing list