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

Consider allowing template literals as a default #626

Closed
jescalan opened this issue Sep 15, 2016 · 2 comments

Comments

@jescalan
Copy link

commented Sep 15, 2016

Ref: https://ponyfoo.com/articles/template-literals-strictly-better-strings

Right now, if you use a template literal without interpolation, it's an error.

@feross

This comment has been minimized.

Copy link
Member

commented Sep 15, 2016

Thanks for the suggestion. That's an interesting blog post.

Whenever there are multiple ways of doing something in JS, standard usually enforces only one way to prevent style arguments. Allowing either backtick (`) or single quote (') for strings would be a step back.

So, what about making backticks (`) the default over single quotes (')? That's hugely disruptive and don't see it ever happening. But before that could even be considered, ES6 would need to be so widely adopted that there's no need for a transpiler in 95% of browsers. Because we can't add a rule that effectively mandates that people use babel in their codebases.

Hope this makes sense! I'm going to close this, but feel free to continue discussion.

@feross feross closed this Sep 15, 2016

@dcousens

This comment has been minimized.

Copy link
Member

commented Sep 16, 2016

I love the idea, but you're right, its just not practical.... yet.
Maybe standard@15

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants
You can’t perform that action at this time.