Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What if you have something like

    const raw =
        "He said "Hello"
        "to me
    ;
Wouldn't that be a mess to parse? How would you know that "He said " is not a string literal and that you have to continue parsing it as a multiline string? How would you distinguish an unclosed string literal from a multiline string?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: