[yaseenist] Julia :verified_trans: on Nostr: For the model of my mfm parser, should I do this: pub enum Node { Bold { children: ...
For the model of my mfm parser, should I do this:
pub enum Node {
Bold { children: ... },
Italic { children: ... },
// ...
}or:
pub enum Node {
Bold(BoldNode),
Italic(ItalicNode),
// ...
}
Published at
2023-06-21 02:48:48Event JSON
{
"id": "fc7e0230908b4fb7c9e410ce72c491f518016495a91d8074cb18a6e7d836fba1",
"pubkey": "bdf8e6a9c859b03b22181316d0f52e886a65f134ab5502c7d7ee2659a988409a",
"created_at": 1687315728,
"kind": 1,
"tags": [
[
"mostr",
"https://snug.moe/notes/9g8oj68lze"
]
],
"content": "For the model of my mfm parser, should I do this:\n\npub enum Node {\n Bold { children: ... },\n Italic { children: ... },\n // ...\n}or:\n\npub enum Node {\n Bold(BoldNode),\n Italic(ItalicNode),\n // ...\n}",
"sig": "7e3f298d757f5f9a4b5da0e0df8aadd971c8be1a3cf50015b07089b64be52f631883dd58c249ac97de52ae446b5ad32985a7076d7da6086056acecba264fa94f"
}