Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

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

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

Comments

@getify
Copy link

getify 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
Copy link
Member

ljharb commented Jun 6, 2019

Yes, see #54.

@jridgewell
Copy link
Member

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.

@getify
Copy link
Author

getify 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
Copy link
Member

Done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants