summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/fstrings.md
blob: 45a238cb8f3bc9089760cc809e829668099e2c8b (plain)
1
2
3
4
5
6
7
## Introducing format strings to the Meson language

In addition to the conventional `'A string @0@ to be formatted @1@'.format(n, m)`
method of formatting strings in the Meson language, there's now the additional
`f'A string @n@ to be formatted @m@'` notation that provides a non-positional
and clearer alternative. Meson's format strings are currently restricted to
identity-expressions, meaning `f'format @'m' + 'e'@'` will not parse.