Function Signature & Keyword arguments

I have a question, why can’t we access the keyword variables in the signature of a method?
Here is an example;

f(x::Int,y::T;z::U = 4) where T<:U where U<:Real = begin
           println("Z : ",typeof(z))
           println("Y : ",typeof(y))

 fm = methods(f).ms[1]
 fm.sig # Tuple{typeof(f),Int64,T} where T<:U where U<:Real

where z and why is it not included in the signature and what if I want to access the type of z in the method object fm, how can I do that?

1 Like