3 ms·
Yes, that is still the case with 5.2. However, a proposal to add typed `throws` is currently being drafted and prototyped [0]. It won't be available in Swift 5.
by NobodyNada 6y ago
Yes, that is still the case with 5.2. However, a proposal to add typed `throws` is currently being drafted and prototyped [0]. It won't be available in Swift 5.3, but if all goes well it might land in the next release after.
(Also, if you're doing Vapor programming, you may be pleased to know that Swift 6 is expected [1] to bring a real concurrency model, which will likely include some form of async/await so that you won't have to muck about with all those nested closures.)
[0]: https://forums.swift.org/t/typed-throws/39660 https://forums.swift.org/t/typed-throws/39660
[1]: https://forums.swift.org/t/on-the-road-to-swift-6/32862/ https://forums.swift.org/t/on-the-road-to-swift-6/32862/