The latest Inside Java Newscast is out and it goes into string templates (string interpolation but better), the deserialization filter, and #JavaFX 19. Get it while it's hot: youtube.com/watch?v=HiHgAh… Also, let me explain, what I mean with "string interpolation but better". 🧵👇🏾
Many programming languages make it simple to embed expressions in strings and string templates will bring that to Java: Simply place your variables/expressions in \{ and } and... you won't get a `String`. 😳 Instead you get a `TemplatedString`. Why?
Because most strings we create - and want to embed variables/expressions in - are for other systems (HTML, JSON, SQL,…) and some of them are security relevant (think of SQL injections). They need to be validated! And so Java will (per current proposal) force us to use a policy.