I'm aware. I typically use "newline" and "line continuation" interchangeably, even though they technically aren't. (So feel free to substitute "line continuation" for "newline", and that should be accurate to what I meant. ;-)) -----
Isiah Meadows [email protected] Looking for web consulting? Or a new website? Send me an email and we can get started. www.isiahmeadows.com On Fri, Dec 15, 2017 at 8:53 AM, kdex <[email protected]> wrote: > Sorry to be pedantic here, but: > > ```js > "this\ > right\ > here" > ``` > > aren't escaped newlines; that would be "\n". > Those up there are line continuations. :) > > On Friday, December 15, 2017 2:48:00 PM CET Isiah Meadows wrote: >> There are ES5 newline escapes. However, it'd be nice if I didn't have >> to resort to templates just for multiline strings. Note: it wouldn't >> actually simplify parsing by much - either you're handling the case >> and remapping CR/CRLF to NL, or you're handling the case and throwing >> an error. >> >> ```js >> // ES5 escaped newlines >> 'a multi-\ >> line string' >> ``` >> ----- >> >> Isiah Meadows >> [email protected] >> >> Looking for web consulting? Or a new website? >> Send me an email and we can get started. >> www.isiahmeadows.com >> >> On Fri, Dec 15, 2017 at 8:43 AM, J Decker <[email protected]> wrote: >> > If any string were allowed to be multi-line it would not break any >> > existing >> > code, and it would simplify parsing strings. >> > >> > 'a multi- >> > line string' >> > >> > Maybe this is a question... why not allow line spanning with single and >> > double quoted strings? >> > >> > _______________________________________________ >> > es-discuss mailing list >> > [email protected] >> > https://mail.mozilla.org/listinfo/es-discuss >> >> _______________________________________________ >> es-discuss mailing list >> [email protected] >> https://mail.mozilla.org/listinfo/es-discuss > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

