mleku on Nostr: golang's "generics" are really just a logical extension of duck typing... if it can ...
golang's "generics" are really just a logical extension of duck typing... if it can be inferred, then it is permitted if the type parameter specifies it
although i don't know yet what the ~ means in them yet, didn't read that in the docs yet but i've seen it in an "x" package
Published at
2024-04-10 00:42:15Event JSON
{
"id": "8d4ede3711a98ef01babda3bdbe6e4ba9c67fc4739f3945f0f28e9f9a1be584f",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1712702535,
"kind": 1,
"tags": [
[
"e",
"6f83f5623b435e6da8876de40ac53fe68be2fba158f1b5af40c173564adbc673",
"wss://relay.nostr.band/",
"root"
],
[
"e",
"2e830c017db8d77691b77ee60f364a8bd297a6e045de1f2e6db8a538acd7ae21",
"wss://relay.nostr.band/",
"reply"
],
[
"p",
"d6149823c90c4865e4bc434a4be1a1ee8f72aabd8328dd059ba4f11f7633b0b6",
"",
"mention"
]
],
"content": "golang's \"generics\" are really just a logical extension of duck typing... if it can be inferred, then it is permitted if the type parameter specifies it\n\nalthough i don't know yet what the ~ means in them yet, didn't read that in the docs yet but i've seen it in an \"x\" package",
"sig": "106382f8f2a9a016ab1e0bd94a67da820a7268d417c13e170ce7c1c0050395a81c5f9e43926d73b5d01f2e9c5af1e904ed41ab0e3795f11099d78503ca796410"
}