With String.raw `\n` you get "\\n" versus with `\n` you get "\n".
On Wed, Dec 17, 2014 at 2:12 PM, PhistucK <[email protected]> wrote: > A bit off topic, but how is (from MDN) String.raw`bla\n${5+6}` any different > from simply `bla\n${5+6}`? > (MDN also shows - console.log(`Fifteen is ${a + b} and not ${2 * a + b}.`); > - without any String.raw or anything, so why would one need String.raw?) > > Or is the MDN example simply not so great and it is supposed to be > String.raw("bla\n${5+6}")? > > > ☆PhistucK > > On Wed, Dec 17, 2014 at 7:31 PM, Joshua Bell <[email protected]> wrote: >> >> Any caveats? >> >> Does this include the use of tags (i.e. tag`literal`;) ? >> >> Does this include String.raw()? >> >> (IMHO a subset w/o either of those is both useful and noncontroversial, >> I'm just curious if this Intent includes all the bells and whistles) >> >> >> On Wed, Dec 17, 2014 at 7:31 AM, Erik Arvidsson <[email protected]> wrote: >>> >>> [blink-dev: FYI] >>> >>> Template Literals are part of ES6. The spec in the Editor's draft is >>> stable [1]. >>> >>> Firefox is shipping template literals since version 34 [2]. >>> IE has template literals in a preview release [3]. >>> >>> Owners: [email protected], [email protected] >>> >>> [1] >>> https://people.mozilla.org/~jorendorff/es6-draft.html#sec-template-literals >>> [2] https://developer.mozilla.org/en-US/Firefox/Releases/34 >>> [3] https://status.modern.ie/templatestringses6 >>> >>> -- >>> -- >>> v8-users mailing list >>> [email protected] >>> http://groups.google.com/group/v8-users >>> --- >>> You received this message because you are subscribed to the Google Groups >>> "v8-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >> >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. > > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- erik -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
