String interpolation, maybe? #1010
vascanera
started this conversation in
Ideas/Requests
Replies: 1 comment 3 replies
-
I think one problem Bill has with it, is that it is sort of a "hidden" memory allocation and a hidden import ( |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know that there was some closed thread (and rejected proposal) in "Issues" with some proposals, that, among other stuff, had some proposal for string interpolation (#169).
Could this feature (string interpolation), eventually, make it into the language, in one form or another?
In latest available Tag (dev-2021-06) you added "Unified cond ? x : y and x if cond else y logic" which, actually, gives us the same result using 2 different syntax constructs.
A string interpolation implementation could be treated in the same way, as a re-arranged syntax for printf.
Will we ever get this into the language?
I think the usefulness of such a feature is quite obvious when you need to print lots of data interpolated with other text.
Is this way out of line with Odin's philosophy?
Cheers! Keep up the good work.
Beta Was this translation helpful? Give feedback.
All reactions