For example, let’s say you dynamically make a module Foo
:
module Foo
nothing_here_yet = true
end
Is it worthwhile to put an invokelatest try-catch to avoid world_age bugs, while still keeping most of the speed?
try
Foo.eval(cur_import)
catch
Base.invokelatest(
Foo.eval,
cur_import
)
end
// one related questions might be: how much does a try-catch loop hurt you (performance-wise)?
edit: more specifically, if the catch part never gets touched