> My suggestion: have two constructors, StaticArray<T>(size: LiteralInteger,
> initialValue: T) and StaticArray<T>(dimensions: [LiteralInteger],
> initialValue: T)
That would give away the option of typesafe vector math, which I consider more
valuable than the increased performance:
I don't want to write things like "Vector3D" and "Vector4D" to wrap a static
array just to ensure that it has the right size, and I don't want to have
runtime-checks which would decrease the performance-benefit.
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution