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

Clarification about what this "unsupported" syntax is referring to? #88

Closed
getify opened this issue Jun 6, 2019 · 4 comments

Comments

Projects
None yet
3 participants
@getify
Copy link

commented Jun 6, 2019

This is listed under the "unsupported" section:

a?.b`{c}`

What is that intended to mean, specifically, the {c} part? Was that intended to be:

a?.b`${c}`

Moreover, is it saying that:

mylib?.mytag`my string`

will be invalid syntax?

@ljharb

This comment has been minimized.

Copy link
Member

commented Jun 6, 2019

Yes, see #54.

@jridgewell

This comment has been minimized.

Copy link
Member

commented Jun 6, 2019

Correct. We do not currently support optional tagged templates, but explicitly forbidding it now allows us to avoid an ASI hazard if we do add support for it in the future.

@jridgewell jridgewell closed this Jun 6, 2019

@getify

This comment has been minimized.

Copy link
Author

commented Jun 6, 2019

The point of this issue was, the README should change

a?.b`{c}`

to

a?.b`${c}`

or

a?.b`c`

because {c} is unnecessarily confusing as a cited example.

jridgewell added a commit that referenced this issue Jun 6, 2019

@jridgewell

This comment has been minimized.

Copy link
Member

commented Jun 6, 2019

Done

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