# 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:** 6

<div class="post-metadata">

### Author: ![Lucas\_Queiroz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lucas_queiroz/32/12086_2.png) [@Lucas\_Queiroz](https://discourse.julialang.org/u/Lucas_Queiroz)
#### Post date: [June 30, 2020, 5:21pm UTC](https://discourse.julialang.org/t/how-do-i-create-syntactic-sugar-for-julia-functions/42312/6 "2020-06-30T17:21:55Z")

</div>

From reading [this thread](https://discourse.julialang.org/t/is-not-an-operator/20221/2), I conclude that some symbols are parsed as infix, but some aren’t, for example

```julia
julia> function ↑(x, y)
           return x - y + 3
       end
↑ (generic function with 1 method)

julia> 9 ↑ 2
10

julia> function f(x, y)
           return x - y + 3
       end
f (generic function with 1 method)

julia> 9 f 2
ERROR: syntax: extra token "f" after end of expression
Stacktrace:
 [1] top-level scope at REPL[10]:0

```

Julia parses `↑` as an infix, but not `f`.

I don’t know if it is possible to make Julia parse `f` as an infix.

---

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