Experimental browser for the Atmosphere
Interesting. I find the unwrap_or_else version to both take less cognitive load and focus on the call rather than all the error handling. To me reads as "call this function, and if it returns None, I want this string instead". Getting that out of the match seems harder.
May 3, 2025, 2:10 PM
{ "uri": "at://did:plc:wjyyltkrn7ppnwdtagyvpszk/app.bsky.feed.post/3lobjdcvqzs2l", "cid": "bafyreibkgz22urjsrlm7gyzrytt4vklfeilsndxw2x5ofworq6m3eanlie", "value": { "text": "Interesting. I find the unwrap_or_else version to both take less cognitive load and focus on the call rather than all the error handling.\n\nTo me reads as \"call this function, and if it returns None, I want this string instead\". Getting that out of the match seems harder.", "$type": "app.bsky.feed.post", "langs": [ "en" ], "reply": { "root": { "cid": "bafyreicjcu2ogzbktgoutz56lyaudxgfcwx2jgsvpj6u4scnpurytpe64u", "uri": "at://did:plc:wjyyltkrn7ppnwdtagyvpszk/app.bsky.feed.post/3lo7lfamsc22e" }, "parent": { "cid": "bafyreic2frojnh76jbxbicmd64mdymip7ku4bsv7dwdql2far6jrxfgau4", "uri": "at://did:plc:tjjvvy3vhzzyue54g7b3dar7/app.bsky.feed.post/3lob4o4peec2m" } }, "createdAt": "2025-05-03T14:10:00.488Z" } }