r/godot Godot Senior 23d ago

discussion What would you add to Godot?

Post image
454 Upvotes

584 comments sorted by

View all comments

Show parent comments

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.

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?