Pitch: Static and class subscripts

I don't think that was ever the case. My recollection of the history is as @beccadax wrote it in the pitch: when we introduced subscripts, array types were still written Int[], so a zero-argument static subscript would have been ambiguous with an array type within expression context. Array syntax changed in an early beta of Swift 1.0, but we never got back to static subscripts.

Doug

10 Likes