RFR: 7903727: Remove the reliance on String Templates feature [v2]
Jorn Vernee
jvernee at openjdk.org
Mon May 20 16:54:14 UTC 2024
On Mon, 20 May 2024 10:13:53 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> we could use a different way to format messages, more similar to MessageFormat where arguments have indices that can be used in the format message (so they can be repeated, reordered, etc.).
`String.format` also supports referencing arguments by index, e.g. `String.format("%2$s %1$s", "A", "B")` would produce `"B A"`, and the same argument can be referenced multiple times as well. I suggest we use that for the longer text blocks with multiple embedded values.
-------------
PR Comment: https://git.openjdk.org/jextract/pull/244#issuecomment-2120827040
More information about the jextract-dev
mailing list