Foone🏳️⚧️ on Nostr: I'm not entirely sure I am sober enough to understand how Results interact with ...
I'm not entirely sure I am sober enough to understand how Results interact with Options<>
Result is an enum that's either Ok or Err, and Option is an enum that's either None or Some.
Is it that for Result, there's parameters with both Ok and Err, but with Option, there's no parameters with None?
And you just use them differently?
Published at
2024-07-13 06:18:19Event JSON
{
"id": "8158fa907dc61d1b49d41e83e0d0a9fc3d7b00c941a0d84b90aaee89f35445e6",
"pubkey": "8d0c6793de7edd25b3e6fcfd2e4e9b301cec2c7e577a9dcf0247e64d7c3c737e",
"created_at": 1720851499,
"kind": 1,
"tags": [
[
"e",
"84c122a739ab873cad870deafbdfcd106095181d517ee174cfb6c04de70ac295",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://digipres.club/users/foone/statuses/112777723868947316",
"activitypub"
]
],
"content": "I'm not entirely sure I am sober enough to understand how Results interact with Options\u003c\u003e\n\nResult is an enum that's either Ok or Err, and Option is an enum that's either None or Some. \n\nIs it that for Result, there's parameters with both Ok and Err, but with Option, there's no parameters with None? \nAnd you just use them differently?",
"sig": "8c4a8ec97568de9f445d4f5ba5d5ee350e7d3a23de0c1cf096bdac25f6c5638db3349da676ee15c254e3e51b06364ff985833e2cfed5fb9a33653045fb4b3966"
}