# Dot calls / broadcasts for strings

**URL:** https://discourse.julialang.org/t/dot-calls-broadcasts-for-strings/61195
**Category:** Internals & Design
**Tags:** question, strings, broadcast
**Created:** [May 15, 2021, 9:56am UTC](https://discourse.julialang.org/t/dot-calls-broadcasts-for-strings/61195 "2021-05-15T09:56:50Z")
**Posts on this page:** 1
**Page:** 2

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [May 20, 2021, 2:44am UTC](https://discourse.julialang.org/t/dot-calls-broadcasts-for-strings/61195/21 "2021-05-20T02:44:37Z")

</div>

The issue is that what one wants is what our strings do: indexing by code units and getting characters. My inclination is that there should be `codeunits(str)`, `chars(str)` and `graphemes(str)` and they should all be indexed by code unit, but maybe wrapped in a `StringIndex` type that you either can’t just do bare arithmetic with or that remembers the string the index is into and does the right advancing when you do arithmetic with it.

[Previous page](https://discourse.julialang.org/t/dot-calls-broadcasts-for-strings/61195.md?page=1)
