String Templates (JEP 430)

GPTKB entity

Statements (23)
Predicate Object
gptkbp:instanceOf gptkb:EP
Java language feature
gptkbp:announced 2023-03-21
gptkbp:author gptkb:Jim_Laskey
gptkbp:describes Introduces string templates to Java, enhancing expressiveness and safety of string composition.
gptkbp:enables Custom string processors
Embedding expressions inside string literals
gptkbp:exampleSyntax STR."Hello, {name}!"
https://www.w3.org/2000/01/rdf-schema#label String Templates (JEP 430)
gptkbp:JEP_number 430
gptkbp:motive Enable safer and more maintainable code
Reduce errors and improve readability in string composition
gptkbp:partOf gptkb:Project_Amber
gptkbp:proposedBy gptkb:Java_21
gptkbp:relatedTo String interpolation
Text blocks
gptkbp:releaseTarget gptkb:Java_SE_21
gptkbp:replacedBy Manual string concatenation
gptkbp:seeAlso JEP 378
JEP 361
gptkbp:status gptkb:Preview
gptkbp:bfsParent gptkb:Java_SE_22_Edition
gptkbp:bfsLayer 7