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

How can we do string interpolation using $? #733

Closed
tcortega opened this issue Aug 11, 2023 · 4 comments
Closed

How can we do string interpolation using $? #733

tcortega opened this issue Aug 11, 2023 · 4 comments
Assignees
Labels

Comments

@tcortega
Copy link

Seems like $ and it are equivalent, and a reserved keyword. How would we do string interpolation without having to use string.Format?

@StefH
Copy link
Collaborator

StefH commented Aug 11, 2023

Can you provide a full example what you are trying to do?

@tcortega
Copy link
Author

Can you provide a full example what you are trying to do?

new ExpressionParser(null, """$"{1+1}"+string.Empty""", null, null).Parse(null);

Has a simple string interpolation but leads to the No 'it' is in scope exception.

@StefH
Copy link
Collaborator

StefH commented Aug 13, 2023

This is not yet possible.

I'll add config setting
(#734)

@StefH StefH self-assigned this Aug 15, 2023
@StefH StefH added the question label Oct 13, 2024
@StefH
Copy link
Collaborator

StefH commented Oct 13, 2024

Closing as not planned.

@StefH StefH closed this as completed Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants