Revisit the String template syntax

Remi Forax forax at
Tue Apr 11 18:32:24 UTC 2023

I've promoted this email to amber-spec-experts given that several people on the internet and offline have said more or less the same thing.

Even if it's not for 21, now that a string template is always prefixed by a template processor, the part in between quote does not need to rely on backslash '\' anymore.

Should we still keep the current syntax \{...} or should we go to the more usual ${...} syntax ?


----- Original Message -----
> From: "Octavia Togami" <octavia.togami at>
> To: "amber-spec-comments" <amber-spec-comments at>
> Sent: Tuesday, April 11, 2023 1:39:20 AM
> Subject: Syntax question for JEP 430: String Templates

> Hi,
> I was reading this portion of the alternatives section:
>> For the syntax of embedded expressions we considered using ${...}, but that
>> would require a tag on string templates (either a prefix or a delimiter other
>> than ") to avoid conflicts with legacy code.
> And it seems that this is no longer a valid reason, as per [1] there
> is always a required prefix anyways. Is there another reason to avoid
> using this syntax now?
> Thanks,
> Octavia
> [1]:

More information about the amber-spec-experts mailing list