Join Nostr
2026-08-06 17:40:26 UTC

solo on Nostr: <code>// Create a variable that uses a Windows<br>// path without escaping the ...

<code>// Create a variable that uses a Windows<br>// path without escaping the backslashes:<br>const filePath = String.raw`C:\Development\profile\about.html`;<br></code>wtf this syntax is complete ass

they should have just done what kotlin did where if you want a raw/multiline string you can do<code>val filePath = """C:\Development\profile\about.html"""<br></code>

and then because it allows string interpolation, if you wanted to escape that then you can add an interpolation prefix:<code>val foo = $$"""$a""" // the value of the string is the literal '$a'<br></code>