RFR: 8367531: Template Framework: use scopes and tokens instead of misbehaving immediate-return-queries [v29]

Roberto Castañeda Lozano rcastanedalo at openjdk.org
Fri Nov 14 13:20:12 UTC 2025


On Fri, 14 Nov 2025 08:43:14 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

> We would probably get rid of `let` and just use local variables in lambdas, and then format them directly into strings.

But wouldn't this take us out of the "everything is a token" design again? What I am getting at is that the comments in the tutorial and the documentation suggesting that string templates could be used to provide the same functionality could confuse the user (they at least did challenge my mental model of the framework), and maybe it would be worth removing them, or at least adding some nuance to them.

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

PR Comment: https://git.openjdk.org/jdk/pull/27255#issuecomment-3532709646


More information about the hotspot-compiler-dev mailing list