Clarification about what this "unsupported" syntax is referring to?
getify opened this issue · 4 comments
getify commented
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?
jridgewell commented
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 commented
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 commented
Done