You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
says "may throw" but in fact it will throw. If error is the only possible outcome, I should not try to run the code, especially if it will take a long time to execute. The report could distinguish this case when it is sure of the result.
The text was updated successfully, but these errors were encountered:
I think it already does this, and it's just a matter of phrasing in the message:
julia>f(x) = x ?error() : x
f (generic function with 1 method)
julia>g(x) =error()
g (generic function with 1 method)
julia>@report_callf(true)
No errors !
julia>@report_callg(true)
═════ 1 possible error found ═════
┌ @ REPL[9]:1 Main.error()
│┌ @ error.jl:40error()
││ may throw: Base.throw(Base.ErrorException(Base.getfield(Main.Base::Module, :string::Symbol)::typeof(string)()::String)::ErrorException)
│└───────────────
says "may throw" but in fact it will throw. If error is the only possible outcome, I should not try to run the code, especially if it will take a long time to execute. The report could distinguish this case when it is sure of the result.
The text was updated successfully, but these errors were encountered: