5 ms·
Neat, but it honestly feels like a step backwards for me. I don't pass multiple parameters into print() or console.log() for Python or JS. I use f-strings in
by CivBase 6y ago
Neat, but it honestly feels like a step backwards for me. I don't pass multiple parameters into print() or console.log() for Python or JS. I use f-strings in Python 3, .format() in Python 2, and template strings in JS. They just read better to me.
- worker767424 6y agoI think printf/format and interpolation/fstrings both have their place, and it's nice when languages support both.
- rodorgas 6y agoThere’s a nice syntactic sugar for debugging with f-strings: if you place an equal sign, it will print both the variable name and the value. For example: >>> f"{name=}" 'name=Rodrigo'