Lea Verou on Nostr: Curious why quotes aren’t allowed to be multiline by default in most programming ...
Curious why quotes aren’t allowed to be multiline by default in most programming languages.
In terms of parsing it seems completely unambiguous: you parse a quote and don’t stop consuming until you reach an (unescaped) quote. Newlines don’t factor in at all.
Published at
2024-07-14 20:29:44Event JSON
{
"id": "8917acb5b83edc00300c188219c16eafcd9e5ec3aa1c8fce03ab268329e127e2",
"pubkey": "deb27057e60b8d796302849309a7c542aa1c718108be4813086deaf9139dff76",
"created_at": 1720988984,
"kind": 1,
"tags": [
[
"proxy",
"https://front-end.social/users/leaverou/statuses/112786734076419674",
"activitypub"
]
],
"content": "Curious why quotes aren’t allowed to be multiline by default in most programming languages. \n\nIn terms of parsing it seems completely unambiguous: you parse a quote and don’t stop consuming until you reach an (unescaped) quote. Newlines don’t factor in at all.",
"sig": "9a6ed7dc31a2fa4ad8eaa4650cff2ce39da5a150a58a3f0c66d9b101d18860b994e40f80985d772f2d880189e88b1afb929b2c326cb6b5a0ac9fb5e17cbc7156"
}