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

use \() for escapes instead of $() #10

Open
WebFreak001 opened this issue May 27, 2021 · 0 comments
Open

use \() for escapes instead of $() #10

WebFreak001 opened this issue May 27, 2021 · 0 comments

Comments

@WebFreak001
Copy link

Some languages like Swift add a new escape character (\() that marks the beginning of interpolation in interpolated strings.

I believe this makes more sense than $ as it is not inventing new syntax given the already existing language rules. This however means the short form for identifiers ($foo) won't work anymore.

example:

i"\(x) can be written as \(scientific)\(x) or \(fixed(20, 10))\(x)."
@WebFreak001 WebFreak001 changed the title use \() for escapes instead of $ use \() for escapes instead of $() May 27, 2021
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