# Named arguments to printf format?

**URL:** <https://discuss.ocaml.org/t/named-arguments-to-printf-format/10904>\
**Category:** Learning\
**Tags:** printf\
**Created:** [December 2, 2022, 11:48pm UTC](https://discuss.ocaml.org/t/named-arguments-to-printf-format/10904 "2022-12-02T23:48:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![olleharstedt](https://avatars.discourse-cdn.com/v4/letter/o/f1d935/32.png) [@olleharstedt](https://discuss.ocaml.org/u/olleharstedt)\
**Post date:** [December 2, 2022, 11:48pm UTC](https://discuss.ocaml.org/t/named-arguments-to-printf-format/10904/1 "2022-12-02T23:48:09Z")

</div>

Can’t find an up-to-date or opam package template engine, so maybe printf format is “good enough”? I need something else than just `%s` - my strings are getting bigger, and it gets harder to keep track of all arguments.

Tips?

Hm, this seems to be in opam, [GitHub - bloomberg/ppx\_string\_interpolation: PPX rewriter that enables string interpolation in OCaml](https://github.com/bloomberg/ppx_string_interpolation)

---

<div class="post-metadata">

**Author:** ![ahem](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/ahem/32/1490_2.png) [@ahem](https://discuss.ocaml.org/u/ahem)\
**Post date:** [December 3, 2022, 4:43am UTC](https://discuss.ocaml.org/t/named-arguments-to-printf-format/10904/2 "2022-12-03T04:43:27Z")

</div>

> [@olleharstedt](#):
>
> Hm, this seems to be in opam, [GitHub - bloomberg/ppx\_string\_interpolation: PPX rewriter that enables string interpolation in OCaml](https://github.com/bloomberg/ppx_string_interpolation)

This is actively used, despite not having received/needed updates in a while, so please use it if it fits your needs - and if you encounter any problems, please feel free to open issues on the repo.

---

<div class="post-metadata">

**Author:** ![olleharstedt](https://avatars.discourse-cdn.com/v4/letter/o/f1d935/32.png) [@olleharstedt](https://discuss.ocaml.org/u/olleharstedt)\
**Post date:** [December 3, 2022, 9:33am UTC](https://discuss.ocaml.org/t/named-arguments-to-printf-format/10904/3 "2022-12-03T09:33:24Z")

</div>

Will do, thanks you!
