4 ms·
The ones in Python work significantly differently though; they have inline code execution (rather than using a varargs list after the f-string itself).
by CydeWeys 6y 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).
- mixmastamyk 6y agoSo does shell script and several modern programming langs. The sky hasn't yet fallen.
- oblio 6y agoI've just executed: echo "$(ls)" in my zsh, so I'm not sure what to say, to be honest.
- danudey 6y agoCloser 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.
- danudey 6y agoThe Bourne shell had parameter expansion in strings in 1979, just FYI.