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

I think there's a nice middle ground. For instance, in Swift a function can indicate that it throws, which is better than nothing.

    func canThrowErrors() throws -> String

    func cannotThrowErrors() -> String


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

Search: