HOF for a function not throwing an error

Does this have a name, or does it exist in a package?

function throws_no_errors(f, args...)
    try
        f(args...)
        true
    catch
        false
    end
end

If not, suggestions for both are welcome.

Sounds like a good name for such a function (or the associated macro)

2 Likes