Dusty Pomerleau on Nostr: Bhavani Shankar 💠I don't think the example is silly, I go through this exact ...
Bhavani Shankar 💠(nprofile…4jyn) I don't think the example is silly, I go through this exact progression all the time: Struct with bools or Options, fix it by switching to an enum, realize that my enum variants are really distinct types, switch to a trait-based solution. Some day I'll learn to skip to the end :)
Published at
2025-03-10 09:02:23Event JSON
{
"id": "6c3b049642acb6defc09ab9654ba6af0420bce881aeb91e8c1b3dd9eccf155ab",
"pubkey": "5bdfe5c3188a24f76efd37648930d8ada3e458961d03b2e0d62596d4f76e4778",
"created_at": 1741597343,
"kind": 1,
"tags": [
[
"p",
"973d983bc13c900d581497983bf52722b61a77b4a6738c471d58912e7a72aa09",
"wss://relay.mostr.pub"
],
[
"e",
"eeca9fa4705e1223992b81e254ec3df16c55dd4b11bd132a8a301f7ac0a75347",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fosstodon.org/users/dpom/statuses/114137323492267854",
"activitypub"
]
],
"content": "nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqju7esw7p8jgq6kq5j7vrhaf8y2mp5aa55eecc3catzgju7nj4gyss84jyn I don't think the example is silly, I go through this exact progression all the time: Struct with bools or Options, fix it by switching to an enum, realize that my enum variants are really distinct types, switch to a trait-based solution. Some day I'll learn to skip to the end :)",
"sig": "9adc44f001495f6ed92fca57a592154fadfe85d9c5773fcd43f5dfb3c8d331e6a353177992230bd121c0b6ef7c39a3c79e01549affbe20c4254c4e371eba0052"
}