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

"{x}" prints strings with quotes if the value is Json #6921

Open
Chriscbr opened this issue Jul 16, 2024 · 1 comment
Open

"{x}" prints strings with quotes if the value is Json #6921

Chriscbr opened this issue Jul 16, 2024 · 1 comment
Labels
📐 language-design Language architecture needs-discussion Further discussion is needed prior to impl

Comments

@Chriscbr
Copy link
Contributor

If x is Json, then should "{x}" do something different than Json.stringify(x)?

Maybe... Pragmatically:

let x: Json = "hello";

log("hello, {x}");

Would be nice if it printed:

hello, hello

Originally posted by @eladb in #6219 (comment)

@Chriscbr Chriscbr added 📐 language-design Language architecture needs-discussion Further discussion is needed prior to impl labels Jul 16, 2024
@Chriscbr
Copy link
Contributor Author

Related: #5890

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📐 language-design Language architecture needs-discussion Further discussion is needed prior to impl
Projects
Status: 🆕 New - not properly defined
Development

No branches or pull requests

1 participant