[swift-evolution] Proposal: Contiguous Variables (A.K.A. Fixed Sized Array Type)
Tino Heth
2th at gmx.de
Wed Feb 3 04:03:29 CST 2016
> Why does n have to be a compile-time constant? Seems like any integer value >= 0 would be ok.
If n is a variable whose value is determined at runtime, the compiler can't enforce type safety. It is no problem to declare structures of fixed size in Swift, so there is no need for a special syntax unless it has benefits (like improved safety).
More information about the swift-evolution
mailing list