Avatar
omochimetaru 7/9/2020 4:01 AM
Numerical APIs for Swift. Contribute to apple/swift-numerics development by creating an account on GitHub.
4:01 AM
For this reason, modules that would have this ambiguity are suffixed with Module within Swift Numerics: import ComplexModule // I know I only ever want Complex<Double>, so I shouldn't need the generic parameter. typealias Complex = ComplexModule.Complex<Double> // But I can still refer to the generic type by qualifying the name if I need it occasionally: let a = ComplexModule.Complex<Float>
4:02 AM
パッケージ名とそのパッケージが提供する型の名前が衝突してると面倒な事になる問題に対して
4:02 AM
swift-numericsの対応方針はパッケージ名に Module suffix をつける派らしい。