We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was surprised to learn that Regex is not Sendable. The code below doesn't compile with Swift 6.
struct Parser { private static let number = /\d+/ }
I would expect this to just work. Regex is a value type. Why would it have shared mutable state?
swift-driver version: 1.115 Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4) Target: x86_64-apple-macosx15.0
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
I was surprised to learn that Regex is not Sendable. The code below doesn't compile with Swift 6.
Reproduction
Expected behavior
I would expect this to just work. Regex is a value type. Why would it have shared mutable state?
Environment
swift-driver version: 1.115 Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
Target: x86_64-apple-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: