F-Strings #4036
Replies: 4 comments 1 reply
-
Isn't that what the "%" character in strings is for (Doc) ? |
Beta Was this translation helpful? Give feedback.
-
Yes, but it’s an alternative way to utilize it. Instead of it would be var script = "GDScript" |
Beta Was this translation helpful? Give feedback.
-
Its similar to C#: also for keep tabulation and new lines: Tbh feel the current f-strings in GDScript different than other languages (in a bad sense), it doesn't like me. |
Beta Was this translation helpful? Give feedback.
-
There is already a proposal: Let's close this discussion for consolidation. Thanks for the contribution nonetheless! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I know this has been mentioned a little in the past, but it would be nice to see f-string support for the GDScript language.
https://docs.python.org/3/tutorial/inputoutput.html
I don't think it would need to be as in depth as python 3 (unless it works fine that way?), but something like
f"The value of x, is {x}" would be nice, and require less than format strings.
Beta Was this translation helpful? Give feedback.
All reactions