[code-reflection] RFR: Model String Template [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Tue Feb 27 17:43:56 UTC 2024


On Tue, 27 Feb 2024 16:58:57 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> That's a good start, but i would prefer something that models the template expression at a higher-level and captures the structure, in effect more closely aligned with `JCStringTemplate`. The expressions can be bodies of the template operation, and the processor and fragments the operands, similar to what Maurizio described. Then it can be lowered into core operations.

Is it necessary to model the expressions as bodies? After all, values in a string template are eagerly computed?

-------------

PR Comment: https://git.openjdk.org/babylon/pull/30#issuecomment-1967277680


More information about the babylon-dev mailing list