lawless polymorph on Nostr: Thinking about multi-line string literal syntax where each line starts with a quote ...
Thinking about multi-line string literal syntax where each line starts with a quote character ("), and only the last line has an end quote ... like it's a fantasy novel and a character is going off on a multi-paragraph monologue.
"hello this
"is a multiline string literal
"and it ends
"on this line"
The purpose of " at the beginning of each line (after the first) is so you can do indentation without affecting the contents. Also each line can be lexed independently.
Published at
2024-09-24 16:18:00Event JSON
{
"id": "ddc2cf6680e8385e2d785f4f23ec0db3178ec614f4518230c9f72b1711552e69",
"pubkey": "bad5303c1a44db0be976b705bce1e28963e87f1aadb14d9fe005dfc6d951623f",
"created_at": 1727194680,
"kind": 1,
"tags": [
[
"content-warning",
"PL syntax musings"
],
[
"proxy",
"https://gamedev.lgbt/users/typeswitch/statuses/113193430611234759",
"activitypub"
]
],
"content": "Thinking about multi-line string literal syntax where each line starts with a quote character (\"), and only the last line has an end quote ... like it's a fantasy novel and a character is going off on a multi-paragraph monologue.\n\n\"hello this\n\"is a multiline string literal\n\"and it ends\n\"on this line\"\n\nThe purpose of \" at the beginning of each line (after the first) is so you can do indentation without affecting the contents. Also each line can be lexed independently.",
"sig": "6b54148d752a589fa07cfe1222587709d4f1db36594a78905658e6291824457e91adad9e4568a34ea74e0d5652a2a39fbdb4609fd2de09d6c7f6d5e4f9ce361e"
}