News for hackers. Stuff that matters.
Re:Studying the relationship between exception handling and ... by fauigerzigerk on Saturday September 18, 2021 @03:43AM (#28574441)
>The challenge with exceptions is there is zero indication at the call site that a function can throw.

Swift has that. Calling a potentially throwing function requires that you put "try" in front of it.

The downside is that you don't know what it throws (similar to Rust functions returning dyn Error)

There are no comments on this comment yet.