Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow strings inside string interpolation #632

Open
Goju-Ryu opened this issue Oct 21, 2024 · 0 comments
Open

Allow strings inside string interpolation #632

Goju-Ryu opened this issue Oct 21, 2024 · 0 comments

Comments

@Goju-Ryu
Copy link
Contributor

Goju-Ryu commented Oct 21, 2024

I have noticed that interpolations with strings inside are treated as unterminated interpolations. I have found that I have had to introduce a lot of extra bindings to avoid this when writing functions working with strings. I had the following usecase: "{str_replace(value_str_value_part, ".", "") }".
This currently isn't possible so I had to either introduce a named variable in an already cluttered function or give the static strings variables outside the function to use the names instead of the value directly. Some other common usecases I have had for this feature when working in other languages has been something similar to "{if true then "True" else "False"}".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant