Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn on Swift 6 language mode. #123

Closed
wants to merge 3 commits into from
Closed

Conversation

mbrandonw
Copy link
Member

There was only one small thing stopping us from turning on Swift 6 mode in this package, and that was our use of a data bytes formatter. It may be OK to just nonisolated(unsafe) it since the initialization of static variables is thread safe in Swift and since we never mutate the formatter after initialization. But I went ahead and wrapped it in a lock too just in case.

Alternatively we could use the new FormatStyle stuff, but then the CustomDumpStringConvertible conformance will be iOS 15+ (probably not a big deal), but also I don't think FormatStyle is implemented in corelibs-foundation.

@mbrandonw mbrandonw requested a review from stephencelis July 3, 2024 12:47
@mbrandonw mbrandonw closed this Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant