# How can an infix operator with subscript such as ⋆ₛ work?

**URL:** <https://discourse.julialang.org/t/how-can-an-infix-operator-with-subscript-such-as-work/9929>\
**Category:** General Usage\
**Tags:** question, infix\
**Created:** [March 23, 2018, 6:42pm UTC](https://discourse.julialang.org/t/how-can-an-infix-operator-with-subscript-such-as-work/9929 "2018-03-23T18:42:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suiato](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/suiato/32/1713_2.png) [@suiato](https://discourse.julialang.org/u/suiato)\
**Post date:** [March 23, 2018, 6:42pm UTC](https://discourse.julialang.org/t/how-can-an-infix-operator-with-subscript-such-as-work/9929/1 "2018-03-23T18:42:15Z")

</div>

Using ⋆ as an infix operator works in Julia. For example,  
function ⋆(a, b)  
a + b  
end  
works.  
But,  
function ⋆ₛ(a, b)  
a + b  
end  
gives an error message  
ERROR: syntax: expected “end” in definition of function “⋆”.

Is there a way to make ⋆ₛ work as a name of the function to be used as an infix operator?

---

<div class="post-metadata">

**Author:** ![non-Jedi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/non-jedi/32/3645_2.png) [@non-Jedi](https://discourse.julialang.org/u/non-Jedi)\
**Post date:** [March 23, 2018, 6:48pm UTC](https://discourse.julialang.org/t/how-can-an-infix-operator-with-subscript-such-as-work/9929/2 "2018-03-23T18:48:12Z")

</div>

Yep, but not until 0.7: [https://github.com/JuliaLang/julia/pull/22089](https://github.com/JuliaLang/julia/pull/22089)

---

<div class="post-metadata">

**Author:** ![suiato](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/suiato/32/1713_2.png) [@suiato](https://discourse.julialang.org/u/suiato)\
**Post date:** [March 23, 2018, 7:26pm UTC](https://discourse.julialang.org/t/how-can-an-infix-operator-with-subscript-such-as-work/9929/3 "2018-03-23T19:26:08Z")

</div>

Thanks 🙂
