Eclipse 2024-03 now available - STRING TEMPLATES !!
posted 1 year ago
-
1 -
-
Number of slices to send:Optional 'thank-you' note:
-
-
The new Eclipse has been release. Expect the JDK-22 to follow any day now.
FINALLY this Eclipse supports String templates as a "preview feature" which you have to enable in the preferences if you want to use. Templates was originally released in JDK-21 as a preview but Eclipse didn't support it until now.
FINALLY this Eclipse supports String templates as a "preview feature" which you have to enable in the preferences if you want to use. Templates was originally released in JDK-21 as a preview but Eclipse didn't support it until now.
posted 1 year ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I took a quick look online, is the main goal of string templates to provide an alternative to String concatenation using the + sign?
posted 1 year ago
-
2 -
-
Number of slices to send:Optional 'thank-you' note:
-
-
Check out the Motivation on the related JEP.
posted 1 year ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Interestingly, it let me use Structured Concurrency classes without checking the "Enable Preview Features" box in the project's properties. Not even a warning. Although it might have been different if I'd tried running the compiled code outside Eclipse, I suppose.
Chris Smithtopher
Ranch Hand
Posts: 49
1
posted 1 year ago
Good stuff. Seems like it should make for some streamlined code where applicable
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Stephan van Hulst wrote:Check out the Motivation on the related JEP.
Good stuff. Seems like it should make for some streamlined code where applicable
posted 1 year ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I feel compelled to observe that IntelliJ has been supporting string templates for a while now.
And it correctly errors out if you use preview features without having the appropriate flags set, with a helpful message for how to set them. 
And it correctly errors out if you use preview features without having the appropriate flags set, with a helpful message for how to set them. 
posted 1 year ago
Perhaps because that's not a language feature but an API feature?
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Paul Clapham wrote:Interestingly, it let me use Structured Concurrency classes without checking the "Enable Preview Features" box in the project's properties. Not even a warning. Although it might have been different if I'd tried running the compiled code outside Eclipse, I suppose.
Perhaps because that's not a language feature but an API feature?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Mike Simmons
Master Rancher
Posts: 5250
85
posted 1 year ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Perhaps - but from the command line, I get an error like this:
| We should throw him a surprise party. It will cheer him up. We can use this tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |









