#StringTemplates

Anthony Acciolyanthony@accioly.social
2024-10-28

"Small" things I highly appreciate about Kotlin coming from Java - Chapter 2

๐—ฆ๐˜๐—ฟ๐—ถ๐—ป๐—ด ๐—ง๐—ฒ๐—บ๐—ฝ๐—น๐—ฎ๐˜๐—ฒ๐˜€

๐š’๐š–๐š™๐š˜๐š›๐šโ€‚๐š“๐šŠ๐šŸ๐šŠ.๐š๐š’๐š–๐šŽ.๐™ป๐š˜๐šŒ๐šŠ๐š•๐™ณ๐šŠ๐š๐šŽ

๐š๐šž๐š—โ€‚๐š–๐šŠ๐š’๐š—()โ€‚{
โ€‚โ€‚โ€‚โ€‚๐šŸ๐šŠ๐š•โ€‚๐š—๐šŠ๐š–๐šŽโ€‚=โ€‚"๐™น๐š˜๐š‘๐š—โ€‚๐™ณ๐š˜๐šŽ"
โ€‚โ€‚โ€‚โ€‚๐šŸ๐šŠ๐š•โ€‚๐š๐š˜๐š๐šŠ๐šขโ€‚=โ€‚๐™ป๐š˜๐šŒ๐šŠ๐š•๐™ณ๐šŠ๐š๐šŽ.๐š—๐š˜๐š ()
โ€‚โ€‚โ€‚โ€‚๐š™๐š›๐š’๐š—๐š๐š•๐š—("๐™ท๐šŽ๐š•๐š•๐š˜,โ€‚$๐š—๐šŠ๐š–๐šŽ!โ€‚๐šƒ๐š˜๐š๐šŠ๐šขโ€‚๐š’๐šœโ€‚${๐š๐š˜๐š๐šŠ๐šข.๐š๐šŠ๐šข๐™พ๐š๐š†๐šŽ๐šŽ๐š”}.")
}

kotlinlang.org/docs/strings.ht

No more overusing ๐š‚๐š๐š›๐š’๐š—๐š.๐š๐š˜๐š›๐š–๐šŠ๐š parameters. No more clunky ๐™ผ๐šŽ๐šœ๐šœ๐šŠ๐š๐šŽ๐™ต๐š˜๐š›๐š–๐šŠ๐š.๐š๐š˜๐š›๐š–๐šŠ๐š. It just works.

#Kotlin #Java #JVM #String #StringInterpolation #StringTemplates #SoftwareDevelopment

Michael Simonsrotnroll666
2024-06-25

Nice summary why got removed in 23 youtube.com/watch?v=c6L4Ef9owuQ

By @nipafx

Wrt "experimental and hobby codebasesโ€ฆ" though, are there more? ;)

2024-06-07

Java String Templates, a preview feature in Java-21, will be seriously revised.

If you started using String Templates and wondered somewhat about the boldness of the completely new syntax, your thoughts will be answered by the Brian Goetz' email about the topic replicated here: mail.openjdk.org/pipermail/amb

#java #java21 #java23 #jep459 #stringtemplates

embarc Software Consultingembarc
2024-05-03

๐ŸŽ™โ˜•๏ธ๐Ÿš€ Seht euch in der Session "Robust and Flexible String Templates in Java" das Preview Feature einmal genauer an! Fรผr die nรคchsten Java-Versionen snd bereits weitere ร„nderungen angekรผndigt, doch erfahrt von @sippsack in dieser Session, wie ihr nach derzeitigem Stand String-Literale und Textblรถcke einbetten und die Vorgehensweise mit Hilfe selbst definierter Template Prozessoren sogar anpassen kรถnnt!

โ„น๏ธ ๐Ÿ”— 2024.europe.jcon.one/schedule

2023-12-12

๐Ÿš€ Im zweiten Teil seiner Java-Blogserie fรผhrt uns Jean-Claude Brantschen tiefer in die spannende Welt der #StringTemplates ein. ๐Ÿ‘ฉโ€๐Ÿ’ป

Ein Highlight von #Java21 ist die Fรคhigkeit, massgeschneiderte Template-Prozessoren zu erstellen. Erfahre im Blogpost, wie das Feature damit grosse Flexibilitรคt bietet und kreative Wege erรถffnet, um die #Codierung noch effizienter zu gestalten.

puzzle.ch/de/blog/articles/202

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst