# ::Function{func\_name} like ::Type{type\_name}

**URL:** <https://discourse.julialang.org/t/function-func-name-like-type-type-name/7697>\
**Category:** Internals & Design\
**Created:** [December 11, 2017, 11:29pm UTC](https://discourse.julialang.org/t/function-func-name-like-type-type-name/7697 "2017-12-11T23:29:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Post date:** [December 11, 2017, 11:29pm UTC](https://discourse.julialang.org/t/function-func-name-like-type-type-name/7697/1 "2017-12-11T23:29:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [December 11, 2017, 11:34pm UTC](https://discourse.julialang.org/t/function-func-name-like-type-type-name/7697/2 "2017-12-11T23:34:09Z")

</div>

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

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

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

julia> test(+)
"plus"

```
