# Is it possible to define '+' operator for string as '\*' do for them?

**URL:** <https://discourse.julialang.org/t/is-it-possible-to-define-operator-for-string-as-do-for-them/131835>\
**Category:** New to Julia\
**Tags:** question, strings, operator\
**Created:** [August 25, 2025, 11:58am UTC](https://discourse.julialang.org/t/is-it-possible-to-define-operator-for-string-as-do-for-them/131835 "2025-08-25T11:58:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [August 25, 2025, 12:56pm UTC](https://discourse.julialang.org/t/is-it-possible-to-define-operator-for-string-as-do-for-them/131835/4 "2025-08-25T12:56:32Z")

</div>

See also the Julia FAQ: [Why does Julia use `*` for string concatenation? Why not `+` or something else?](https://docs.julialang.org/en/v1/manual/faq/#Why-does-Julia-use-*-for-string-concatenation?-Why-not-or-something-else?)

In general, when you learn a new language, you should try to learn the idiomatic “spelling” of things in that language. Trying to write code in Julia that superficially resembles some other language (e.g. Python) is just going to get you into trouble — even if there are no _technical_ issues (ala type piracy), your code won’t fit nicely in to the surrounding ecosystem.

---

_[View the full topic](https://discourse.julialang.org/t/is-it-possible-to-define-operator-for-string-as-do-for-them/131835)._
