Hacker News new | ask | show | jobs
by CydeWeys 2110 days ago
The ones in Python work significantly differently though; they have inline code execution (rather than using a varargs list after the f-string itself).
3 comments

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.