> I don't think that non-type generic arguments are enough to create fixed-size 
> arrays. How would you fill in `struct Vector<T, count: Int> { ... }`?
Fixed-size arrays could be initialized like current arrays:
You either give a value to repeat or an array-literal of the right size.
There could be a faillable initializer that takes an array of undefined size as 
well.

The data could be stored in a "normal" array, but I'd expect an implementation 
in the stdlib, so that working with raw memory would stay something that's not 
needed for most Swift developers.

> Seems to me that the first step would be actual language support for 
> non-parametrizable fixed-size arrays.
Are you referring to literals here?
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to