Having dedicated precompile statements is fine for libraries, but not ideal for applications.
What if function calls could be precompiled when they are called? "just in time precompilation"
Let's say there is a macro
@precompile_on_demand f(...)
That wraps the call in a separate module, precompiles that module, and replaces the call with the call from that module?
module PrecompMod
@precompile_all_calls f(...)
end
using .PrecompMod
PrecompMod.f(...)
maybe this can be done with Cassette?