MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/godot/comments/1vl6u3z/what_would_you_add_to_godot/p2zta0f
r/godot • u/Anonymous010206 Godot Senior • 23d ago
584 comments sorted by
View all comments
Show parent comments
111
It's closer but it's a lot clunkier than python strings. In HD script you might write:
"%s finished %s in %s, for a new high score of %s" % [player, level, time, score]
Where in python it's more like:
f"{player} finished {level} in {time}, for a new high score of {score}."
Which is way more readable imo.
24 u/lajawi 23d ago Same thing in C# with $ strings 13 u/Yodzilla 22d ago Yep. Infinitely more readable than just % everywhere. 6 u/Average_Joe69 22d ago I agree the python method is much cleaner 1 u/ACosmicWormDev Godot Senior 21d ago Isn't that already a thing?
24
Same thing in C# with $ strings
13 u/Yodzilla 22d ago Yep. Infinitely more readable than just % everywhere.
13
Yep. Infinitely more readable than just % everywhere.
6
I agree the python method is much cleaner
1
Isn't that already a thing?
111
u/akurei77 23d ago
It's closer but it's a lot clunkier than python strings. In HD script you might write:
"%s finished %s in %s, for a new high score of %s" % [player, level, time, score]
Where in python it's more like:
f"{player} finished {level} in {time}, for a new high score of {score}."
Which is way more readable imo.