fiatjaf on Nostr: One thing I never fully understood was how can immutable types in purely-functional ...
One thing I never fully understood was how can immutable types in purely-functional languages be performant at all. They can't possibly rely on copying all the time to remain "immutable", right? So what is the trick?
Published at
2023-02-07 22:19:35Event JSON
{
"id": "036356a5cf5a45844a5204dd78f8d202b0773dbded4ed1c217df191bb0df5634",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1675808375,
"kind": 1,
"tags": [],
"content": "One thing I never fully understood was how can immutable types in purely-functional languages be performant at all. They can't possibly rely on copying all the time to remain \"immutable\", right? So what is the trick?",
"sig": "dd6bc86e1c1d924485ba18b53a39291d36924cd7d04f54d7bb8d0196d8e1b8e0e871c7b412b2c2069ed1596bea665caf903f4cd0aecd0f8a9624d7ae38477b8d"
}