3 ms·
Swift alone gets this right: It uses error values like in Go, but you must prefix any function which can throw with a try statement or it fails with a compile
by sdegutis 11y ago
Swift alone gets this right:
It uses error values like in Go, but you must prefix any function which can throw with a try statement or it fails with a compile time error. That way you never forget to handle it, but it's not really an exception either.
- pcwalton 11y agoRust effectively does this too with the warn-unused-result lint (on by default) and the try! macro.