# How to determine if an object is callable?

**URL:** <https://discourse.julialang.org/t/how-to-determine-if-an-object-is-callable/2897>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 27, 2017, 8:51am UTC](https://discourse.julialang.org/t/how-to-determine-if-an-object-is-callable/2897 "2017-03-27T08:51:05Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Elrod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/elrod/32/22461_2.png) [@Elrod](https://discourse.julialang.org/u/Elrod)\
**Post date:** [June 23, 2020, 3:57pm UTC](https://discourse.julialang.org/t/how-to-determine-if-an-object-is-callable/2897/22 "2020-06-23T15:57:09Z")

</div>

And a non-callable function:

```julia
julia> function f end
f (generic function with 0 methods)

julia> f isa Function
true

julia> methods(f)
# 0 methods for generic function "f":

```

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [June 24, 2020, 6:54am UTC](https://discourse.julialang.org/t/how-to-determine-if-an-object-is-callable/2897/23 "2020-06-24T06:54:22Z")

</div>

This is a great example and highlights an important point: whether an object is _“callable”_ in general is usually irrelevant in Julia (except maybe for introspection/debugging), since what matters is if it supports a particular call signature.

[Previous page](https://discourse.julialang.org/t/how-to-determine-if-an-object-is-callable/2897.md?page=1)
