[SR-11656] Initialize multiple arrays with unsafeUninitializedCapacity #54067
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 55a599730b8584891083fa98181cdf75
Issue Description:
Consider a function like vDSP_ctoz that has multiple output buffers. We would like to be able to expose this in Swift with a signature like:
Ideally we would use the unsafeUninitializedCapacity inits instead of needing to zero-fill the arrays just to immediately overwrite them. However, this is either impossible or very difficult to do.
Someone might try:
Then they would try:
If they apply the suggested fix:
The text was updated successfully, but these errors were encountered: