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


#1

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


#2

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"