-
Notifications
You must be signed in to change notification settings - Fork 8
String interpolation #147
Copy link
Copy link
Open
Labels
bytecodeAll issues that relate to the generation of Java BytecodeAll issues that relate to the generation of Java BytecodeenhancementNew feature or requestNew feature or requestparserverifier
Milestone
Metadata
Metadata
Assignees
Labels
bytecodeAll issues that relate to the generation of Java BytecodeAll issues that relate to the generation of Java BytecodeenhancementNew feature or requestNew feature or requestparserverifier
Some other programming languages (Groovy, JavaScript, Kotlin, ...) allow for string interpolation.
Check if we can/want to allow this as well.
String interpolation:
$"xxx{variable}"is an interpolated string and can contain variables. Expressions are not (yet) supported and will be evaluated later. It is possible to escape the { and }. Escaping } is not necessary but permitted: $"This is literally a { and }"It is not permitted to use an interpolated string as member name (x.$"something" is not allowed) since member names must be constants.
Acceptance criteria:
{}characters (or whichever chars are used to refer to variables.