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

Paul Sandoz psandoz at openjdk.org
Tue Feb 27 17:57:05 UTC 2024


On Tue, 27 Feb 2024 17:41:26 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

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

Not strictly, but I think it aligns with the general approach taken that models the nested structure of code. The evaluation of the bodies is dependent on their parent operation and such details emerge when lowered (e.g., the eager evaluation in this case, similar i suppose to a for operation that when lowered eagerly evaluates the initialization expression)

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

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


More information about the babylon-dev mailing list