Any reason template string with empty interpolation placeholder (`${}`) throws?
Allen Wirfs-Brock
allen at wirfs-brock.com
Fri Oct 23 00:47:23 UTC 2015
(oops, sent from wrong account)
> On Oct 22, 2015, at 4:55 PM, Mark Miller <erights at gmail.com <mailto:erights at gmail.com>> wrote:
>
>
>
> On Thu, Oct 22, 2015 at 7:20 PM, Caitlin Potter <caitpotter88 at gmail.com <mailto:caitpotter88 at gmail.com>> wrote:
> Cute, but nobody is realistically going to do that.
>
> Since `${}` is a static error, what do you realistically think people will do? Especially if they meant `${''}`, how do you expect them to react to the static error?
Just like they do if they have a line of code that reads:
```js
str = ;
```
when they meant
```js
str = ‘’;
```
It’s just a syntax error. I probably have syntax errors in 50% of the lines that I initially type. I parse, and then fix.
Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151022/792b7d77/attachment.html>
More information about the es-discuss
mailing list