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>
Published at
2026-08-06 17:40:26 UTCEvent JSON
{
"id": "70cb28b2f878bb8184b154875193654c8b55455aa414b7d5a1a693edf373690a",
"pubkey": "bffe0d54195dce7360be42cbff46b04fd1c26b661afd701dca92f1a19fecd9c1",
"created_at": 1786038026,
"kind": 1,
"tags": [
[
"proxy",
"https://tech.lgbt/@solonovamax/117049788108872684",
"web"
],
[
"proxy",
"https://tech.lgbt/users/solonovamax/statuses/117049788108872684",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://tech.lgbt/users/solonovamax/statuses/117049788108872684",
"pink.momostr"
],
[
"-"
]
],
"content": "\u003ccode\u003e// Create a variable that uses a Windows\u003cbr\u003e// path without escaping the backslashes:\u003cbr\u003econst filePath = String.raw`C:\\Development\\profile\\about.html`;\u003cbr\u003e\u003c/code\u003ewtf this syntax is complete ass\n\nthey should have just done what kotlin did where if you want a raw/multiline string you can do\u003ccode\u003eval filePath = \"\"\"C:\\Development\\profile\\about.html\"\"\"\u003cbr\u003e\u003c/code\u003e\n\nand then because it allows string interpolation, if you wanted to escape that then you can add an interpolation prefix:\u003ccode\u003eval foo = $$\"\"\"$a\"\"\" // the value of the string is the literal '$a'\u003cbr\u003e\u003c/code\u003e",
"sig": "427c5c02b30be5c651143997e991e7e8f64ecb72e73e7330b73bc980050ee2c1abfd6a7408a4992282d584d694a97cfee571ab0c1e0a70f91c3dacdaa8670046"
}