David Foster on Nostr: npub172v3n…u689n The PoC seems like a curious combo of a dataclass (always with ...
npub172v3nlrtzd8wssn8f3ckm47jtsxdhq0jakqua3crgrvn7mmv32vsju689n (npub172v…689n) The PoC seems like a curious combo of a dataclass (always with frozen=True, eq=True) and a TypedDict (structural subtyping). Not different enough from either to be worth introducing IMHO.
I'd be very hesitant to propose syntax for any record type without there already being broad usage. We don't even have syntax support for dataclasses yet.
Published at
2023-12-31 04:23:01Event JSON
{
"id": "08b4a46cf186d4a2eac563a143505fdd7e9bf3f47ffbf60edf1105f51bf71764",
"pubkey": "4b4fb677d909e5146751b4c6a03e43496736f5f409d5f8ddb0252c57263d5756",
"created_at": 1703996581,
"kind": 1,
"tags": [
[
"p",
"f29919fc6b134ee842674c716dd7d25c0cdb81f2ed81cec70340d93f6f6c8a99",
"wss://relay.mostr.pub"
],
[
"p",
"4b4002d3714d074cc31210e9e65088406e9f62154010da12c339d41b18b30f21",
"wss://relay.mostr.pub"
],
[
"e",
"7d11e1996f236d11e113035edbb8cae623a3c2c8325a0887d3c571b6a394ea67",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.world/users/davidfstr/statuses/111673119944525209",
"activitypub"
]
],
"content": "nostr:npub172v3nlrtzd8wssn8f3ckm47jtsxdhq0jakqua3crgrvn7mmv32vsju689n The PoC seems like a curious combo of a dataclass (always with frozen=True, eq=True) and a TypedDict (structural subtyping). Not different enough from either to be worth introducing IMHO.\n\nI'd be very hesitant to propose syntax for any record type without there already being broad usage. We don't even have syntax support for dataclasses yet.",
"sig": "6723d8e09c4c6334f258ee8cffecee02ca41e72324026118b97b3a6c5c10ee4f80231ad98f2e27e173a2fd43553192f1ecd9bce184fa5d6dfcdfffad89b7aec5"
}