# \#evolution

**URL:** https://discuss.ocaml.org/tag/evolution/538.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Syntaxic sugar: String.set -\> Bytes.set?](https://discuss.ocaml.org/t/syntaxic-sugar-string-set-bytes-set/10275)

<div class="topic-metadata">

**Author:** [@fccm](https://discuss.ocaml.org/u/fccm)\
**Replies:** 17\
**Last updated:** [August 13, 2022, 2:59am UTC](https://discuss.ocaml.org/t/syntaxic-sugar-string-set-bytes-set/10275 "2022-08-13T02:59:01Z")

</div>

$ cat s.ml let () = let s = Bytes.of\_string "Hello" in s.\[4\] \<- 'a'; print\_endline (Bytes.to\_string s) $ ocaml s.ml File "./s.ml", line 4, characters 2-14: 4 | s.\[4\] \<- 'a'; ^^^^^^^^^^^^ Alert deprecated:…
