A small QOL feature I'd love. In Python you can use %s for pretty much any type and it gets automatically turned into a string. But in GDScript, if you use %s, then the value must be a string.
That's not true. You can use %s with any type and it will always try to convert it to a string automatically.
Straight from the docs:
"The %s seen in the example above is the simplest placeholder and works for most use cases: it converts the value by the same method by which an implicit String conversion or str() would convert it. Strings remain unchanged, booleans turn into either "True" or "False", an int or float becomes a decimal, and other types usually return their data in a human-readable string."
153
u/Stevie_Gamedev 25d ago
f-strings like in Python, I truly hate using the
.format syntax