Named arguments to printf format?

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

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.

3 Likes

Will do, thanks you!