tc39/proposal-optional-chaining

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

getify opened this issue · 4 comments

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?

Yes, see #54.

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.

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.

Done