String Templates (Preview)

GPTKB entity

Statements (24)
Predicate Object
gptkbp:instanceOf gptkb:software
gptkbp:allows embedding expressions in strings
gptkbp:author gptkb:Jim_Laskey
gptkbp:availableOn gptkb:Java_SE_21
gptkbp:canBe gptkb:RAW_processor
gptkb:STR_processor
custom processors
gptkbp:category language enhancement
gptkbp:documentation https://openjdk.org/jeps/430
gptkbp:enables custom string processors
easier string interpolation
gptkbp:goal improve readability and maintainability of string expressions
gptkbp:hasSyntax STR."Hello, \\{name}!"
https://www.w3.org/2000/01/rdf-schema#label String Templates (Preview)
gptkbp:introducedIn gptkb:Java_21
gptkbp:JEP_number 430
gptkbp:partOf gptkb:Java_language
gptkbp:relatedTo string interpolation
template processors
text blocks
gptkbp:requires enabling preview features
gptkbp:status preview
gptkbp:bfsParent gptkb:Java_21
gptkbp:bfsLayer 6