# User-defined binary functions used infix

**URL:** <https://discourse.julialang.org/t/user-defined-binary-functions-used-infix/121601>\
**Category:** General Usage\
**Tags:** question, infix\
**Created:** [October 22, 2024, 4:43pm UTC](https://discourse.julialang.org/t/user-defined-binary-functions-used-infix/121601 "2024-10-22T16:43:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pao/32/34395_2.png) [@pao](https://discourse.julialang.org/u/pao)\
**Post date:** [October 22, 2024, 4:43pm UTC](https://discourse.julialang.org/t/user-defined-binary-functions-used-infix/121601/1 "2024-10-22T16:43:32Z")

</div>

Hi guys,

is there any method for using a **binary** user-defined function **infix** between actual argument values?

I see a lot of discussion about _infix_ **operators** , representable with a single character, but nothing about regular user-defined functions of two arguments …

Using a symbol you loose the verbal semantics which is catch by the function name. Is this possible in Julia, may be with some syntax trick ??

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [October 22, 2024, 4:58pm UTC](https://discourse.julialang.org/t/user-defined-binary-functions-used-infix/121601/2 "2024-10-22T16:58:34Z")

</div>

You can only use the symbols defined in [Mathematics · The Julia Language](https://docs.julialang.org/en/v1/base/math/#Customizable-binary-operators) (and the associated source file) as infix. If you name your function one of those — or one of those with a unicode combining character appended — then it can be used infix.

There’s not a way to use an arbitrarily named function as infix.
