swift icon indicating copy to clipboard operation
swift copied to clipboard

Make `WinSDK.GUID` conform to `CustomStringConvertible`.

Open grynspan opened this issue 2 months ago • 3 comments

This PR adds CustomStringConvertible conformance to GUID on Windows. This type is a currency type and being able to convert it to a string for display or debugging is very useful.

See also #84792.

grynspan avatar Jan 14 '26 18:01 grynspan

@swift-ci test

grynspan avatar Jan 14 '26 18:01 grynspan

Could WinSDK.GUID also conform to LosslessStringConvertible, similar to the accepted proposal for Foundation's UUID? (The implementation at swiftlang/swift-foundation#1303 hasn't been merged yet.)

benrimmington avatar Jan 16 '26 11:01 benrimmington

Could WinSDK.GUID also conform to LosslessStringConvertible, similar to the accepted proposal for Foundation's UUID? (The implementation at swiftlang/swift-foundation#1303 hasn't been merged yet.)

It could, sure. ~~I'd do it in a separate PR though.~~ I done did it.

grynspan avatar Jan 16 '26 18:01 grynspan

@swift-ci test

grynspan avatar Jan 20 '26 14:01 grynspan

@swift-ci smoke test Windows

grynspan avatar Jan 21 '26 14:01 grynspan