Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Swift gained limited support for “typed throws” in Swift 6.0 (2024).

https://github.com/swiftlang/swift-evolution/blob/main/propo...

I say limited because the compiler doesn't (yet, as of 6.2) perform typed throw inference for closures (a closure that throws is inferred to throw `any Error`). I have personally found this sufficiently limiting that I've given up using typed throws in the few places I want to, for now.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: