Open chinedufn opened 2 months ago
@chinedufn I'd like to use the feature. Can I implement this feature?
Yeah!
then remove the attribute once Swift 6 is the lowest Swift version supported by our "Minimum Supported Swift Version` policy
Swift doesn't recommend using typed throws by default: https://github.com/swiftlang/swift-evolution/blob/d780651990fc5dec3e72c4c4203df1cff23bdf98/proposals/0413-typed-throws.md?plain=1#L448-L464
So, we may not want to default to using typed throws and instead keep the #[swift_bridge(typed_throw)]
attribute even after Swift 6
is released.
Not sure. Needs more research.
Swift 6 will introduce a "typed throws" feature https://github.com/swiftlang/swift-evolution/blob/c0576bc0e479efabc97904020def8a8601939687/proposals/0413-typed-throws.md
Give the following bridge module:
We should emit a typed throw for Rust functions that return a Result.
We can add a
#[swift_bridge(typed_throw)]
attribute that allows people to use this in the0.1.x
branch, then remove the attribute once Swift 6 is the lowest Swift version supported by our "Minimum Supported Swift Version` policy https://github.com/chinedufn/swift-bridge/issues/288