swift-system icon indicating copy to clipboard operation
swift-system copied to clipboard

Disfavor String.init(platformString: UnsafePointer<CChar>)

Open jmschonfeld opened this issue 9 months ago • 2 comments

This change disfavors String(platformString:) so that it is not ambiguous with String(cString:) when the initializer is specified without noting the label (i.e. in usages such as someUnsafePointer.map(String.init)

Resolves rdar://127408859

jmschonfeld avatar May 02 '24 20:05 jmschonfeld

@swift-ci please test

jmschonfeld avatar May 02 '24 20:05 jmschonfeld

@swift-ci please test

glessard avatar May 02 '24 20:05 glessard