Interpolating Strings Like a King in Java 21 - Inside Java Newscast #47

Опубликовано: 24 Октябрь 2024
на канале: Java
13,353
569

JEP 430 targets Java 21 and proposes to enhance the Java programming language with string templates. With them you can handle literal text containing embedded expressions and use template processors to produce specialized results.

JEP 430: https://openjdk.org/jeps/430


~~~ Chapters ~~~

0:00 Konigsdag & Strings
0:50 Intro
1:31 String Composition
2:16 String Interpolation (Is Dangerous)
3:39 String Templates As Per JEP 430
4:31 Template Processors - Defined in the Java Platform
6:15 Template Processors - User-Defined
8:06 Outro


~~~ Image Credits ~~~

CC-BY-SA 4.0 International (https://creativecommons.org/licenses/...
Koningsdag 2017 Amstel
source: https://commons.wikimedia.org/wiki/Fi...
author: Shoulderbeach
Amsterdam Koningsdag 2014
source: https://commons.wikimedia.org/wiki/Fi...
author: Ronn

CC-BY-SA 3.0 Unported (https://creativecommons.org/licenses/...
Oranje boten op Koningsdag
source: https://commons.wikimedia.org/wiki/Fi...
author: A. Bakker

CC-BY-SA 2.0 Generic (https://creativecommons.org/licenses/...
Vrijmarkt
source: https://www.flickr.com/photos/joopvan...
author: Joop van Dijk

CC-BY-2.0 Generic (https://creativecommons.org/licenses/...
Koningsdag 2015
source: https://www.flickr.com/photos/bakerlo...
author: BakerlooTheReal
_DSC2025
source: https://www.flickr.com/photos/erikjac...
author: Erik Jacobs

Public domain:
Koningsdag in Amsterdam
source: https://commons.wikimedia.org/wiki/Fi...
author: Alf van Beem


Tags: #Java #Java21 #OpenJDK #SQL #security