What is Nostr?
David Zaslavsky /
npub105v…tsfs
2023-12-27 20:11:02
in reply to nevent1q…g7kw

David Zaslavsky on Nostr: npub172v3n…u689n Personally I wouldn't see myself using this new type. I mean, we ...

npub172v3nlrtzd8wssn8f3ckm47jtsxdhq0jakqua3crgrvn7mmv32vsju689n (npub172v…689n) Personally I wouldn't see myself using this new type. I mean, we already have named tuples and dataclasses which serve a similar role, and I already find the existence of those two types to be a source of uncomfortable ambiguity - not that they're the same, of course, but I often encounter situations where I could use either one and I have no good reason to choose one over the other, and the existence of record types as a third option usable in many of the same cases would only increase that ambiguity.

I suppose if other people find it useful, who am I to object - it's not really hurting me to have another type syntax that I never use - but I guess I just don't get it 🤷

#Python
Author Public Key
npub105vywj5u9qx5fkvuua6cq6xhmm2qmnltetnl0pqzk3wjn452fphsw0tsfs