• Andromxda 🇺🇦🇵🇸🇹🇼
    link
    fedilink
    English
    32
    edit-2
    5 months ago

    \n already is an escape sequence, consisting of \, the escape character, and n, the code that is responsible for the new line. Together they form an escape sequence.

    • Nomecks
      link
      fedilink
      1
      edit-2
      5 months ago

      Sure, but if you don’t escape the \ then you likely won’t even be able to get the name into the first system. You need the name to contain \n so that it gets passed correctly to other systems, otherwise his name may wind up just being “John” .