Hacker News new | ask | show | jobs
by oblio 2110 days ago
Conservative? We've had "f-strings" since 1979, at least.
1 comments

The ones in Python work significantly differently though; they have inline code execution (rather than using a varargs list after the f-string itself).
So does shell script and several modern programming langs. The sky hasn't yet fallen.
The Bourne shell had parameter expansion in strings in 1979, just FYI.
I've just executed:

echo "$(ls)"

in my zsh, so I'm not sure what to say, to be honest.

Closer to:

echo "Username is ${USER}"

As I recall (and Wikipedia seems to confirm), parameter substitutions were in the original bourne shell in 1979, so... Yeah, I'm not sure what's going on there.