# How do I create syntactic sugar for Julia functions?

**URL:** <https://discourse.julialang.org/t/how-do-i-create-syntactic-sugar-for-julia-functions/42312>\
**Category:** General Usage\
**Created:** [June 30, 2020, 4:11pm UTC](https://discourse.julialang.org/t/how-do-i-create-syntactic-sugar-for-julia-functions/42312 "2020-06-30T16:11:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [June 30, 2020, 4:20pm UTC](https://discourse.julialang.org/t/how-do-i-create-syntactic-sugar-for-julia-functions/42312/2 "2020-06-30T16:20:05Z")

</div>

> [@How to define a new infix operator?](https://discourse.julialang.org/t/how-to-define-a-new-infix-operator/34803):
>
> see in base\operators.jl that the built-in operators are defined concisely like: \<(x, y) = isless(x, y) however, seems like I can’t define a custom infix operator like: julia\> (α)(x, y) = x + y α (generic function with 1 method) julia\> α(1, 2) 3 julia\> 1 α 2 ERROR: syntax: extra token "α" after end of expression so, is it possible to have custom infix operators? if yes, what is the syntax of such definitions? thanks.

---

_[View the full topic](https://discourse.julialang.org/t/how-do-i-create-syntactic-sugar-for-julia-functions/42312)._
