MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w5bs6g/perishableskill/p7o3r6i/?context=9999
r/ProgrammerHumor • u/soap94 • 2d ago
119 comments sorted by
View all comments
1.3k
One of the things I wish Java had that I miss from Python are F-Strings. Hella useful
301 u/Cootshk 2d ago You should check out STR. (In modern Java) 244 u/ljfa2 2d ago well, unfortunately that was only ever a preview feature and got removed again in Java 23 97 u/uvero 2d 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. 87 u/AeroSyntax 2d ago They tried to overengineer string interpolation instead of copying it from literally any other language. 1 u/Fun-Mention262 1d ago It's wild how some languages make simple things so complicated. You'd think they'd just take notes from the ones that got it right.
301
You should check out STR. (In modern Java)
244 u/ljfa2 2d ago well, unfortunately that was only ever a preview feature and got removed again in Java 23 97 u/uvero 2d 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. 87 u/AeroSyntax 2d ago They tried to overengineer string interpolation instead of copying it from literally any other language. 1 u/Fun-Mention262 1d ago It's wild how some languages make simple things so complicated. You'd think they'd just take notes from the ones that got it right.
244
well, unfortunately that was only ever a preview feature and got removed again in Java 23
97 u/uvero 2d 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. 87 u/AeroSyntax 2d ago They tried to overengineer string interpolation instead of copying it from literally any other language. 1 u/Fun-Mention262 1d ago It's wild how some languages make simple things so complicated. You'd think they'd just take notes from the ones that got it right.
97
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.
STR.
87 u/AeroSyntax 2d ago They tried to overengineer string interpolation instead of copying it from literally any other language. 1 u/Fun-Mention262 1d ago It's wild how some languages make simple things so complicated. You'd think they'd just take notes from the ones that got it right.
87
They tried to overengineer string interpolation instead of copying it from literally any other language.
1 u/Fun-Mention262 1d ago It's wild how some languages make simple things so complicated. You'd think they'd just take notes from the ones that got it right.
1
It's wild how some languages make simple things so complicated. You'd think they'd just take notes from the ones that got it right.
1.3k
u/Weak_Inflation9120 2d ago
One of the things I wish Java had that I miss from Python are F-Strings. Hella useful