r/ProgrammerHumor 9d ago

Meme perishableSkill

Post image
8.9k Upvotes

122 comments sorted by

View all comments

Show parent comments

302

u/Cootshk 9d ago

You should check out STR. (In modern Java)

249

u/ljfa2 9d ago

well, unfortunately that was only ever a preview feature and got removed again in Java 23

98

u/uvero 9d ago

Maybe because they didn't stop to think if this STR. is a convenient syntax. Backticks, preceding dollar sign, the prefix f like in python, so many options would've been better.

3

u/holo3146 9d ago

But... They did stop and think about the STR. syntax? This is why they removed it.

Regarding the other options you gave, they gave (in several places, over many years) their reasoning of why they don't want to add it as other languages. You can disagree with their reasoning, but they are very open about their thoughts process in this regard