::Function{func_name} like ::Type{type_name}

It would be fab were the internals doing this with the same dispatch advantages.

If you don’t miss the curly brackets too much, this will work:

julia> Function(f) = typeof(f)
Function (generic function with 1 method)

julia> test(::Function(+)) = "plus"
test (generic function with 1 method)

julia> test(+)
"plus"
1 Like