What is Nostr?
Dave Jones /
npub1qx6…qf4d
2024-01-18 04:34:40

Dave Jones on Nostr: I use this pattern a lot, to keep things immutable but still have a default value ...

I use this pattern a lot, to keep things immutable but still have a default value assigned to a variable that must exist later, and make it explicit what's being done.

Is there a more Rusty way to do this and still keep things clear/readable?

Author Public Key
npub1qx6kgzfm3z5qlffxnunsgnsaagwcxt6klx6q7gry56arj5r0yl3qgkqf4d