Is there a good way to let a function ignore unsupported keyword arguments?
fopts = [:kw1] opts = Dict(:kw1=>:symb1, :kw2=>:symb2) function f(; kw1 = :symb) return kw1 end
f(;opts...) will throw METHOD ERROR
I could wrap this with something like this, but then I still need to know which kwargs f will support?
function f2(fopts; kwargs) f(; Dict(key=>get(opts, key, 0) for key in fopts)...) end
I missed the path around this. Itβs not that fussing if there is a penalty for execution, because I believe that they might need some kind of look. Is there a good way to poll what kwargs f accepts programmatically?
julia-lang
Alexander Morley
source share