Andrew Tropin on Nostr: One more reason why it's hard to use alists as associative data structure: There is ...
One more reason why it's hard to use alists as associative data structure: There is no built-in destructuring capabilities for it. It seems (ice-9 match) is no help here. Situation becomes even worse if we have a nested data structure.
Going to stack a bunch of let+assoc-ref's I guess.
#scheme #lisp #guile #clojure
Published at
2023-09-18 04:59:02Event JSON
{
"id": "3dfad59e0575cc54ec575d944adfe8f14e88c200a86768e25267c97196edc696",
"pubkey": "6a3558cf15e6f724383ef20c385d65abf8af54d22fbd7f9c758fda61a08357ed",
"created_at": 1695013142,
"kind": 1,
"tags": [
[
"t",
"scheme"
],
[
"t",
"lisp"
],
[
"t",
"guile"
],
[
"t",
"clojure"
],
[
"proxy",
"https://fosstodon.org/users/abcdw/statuses/111084381298701748",
"activitypub"
]
],
"content": "One more reason why it's hard to use alists as associative data structure: There is no built-in destructuring capabilities for it. It seems (ice-9 match) is no help here. Situation becomes even worse if we have a nested data structure.\n\nGoing to stack a bunch of let+assoc-ref's I guess.\n\n#scheme #lisp #guile #clojure\n\nhttps://cdn.fosstodon.org/media_attachments/files/111/084/366/607/269/755/original/4d5f093cee66c788.png",
"sig": "07feaa442e306539e37a679d0a93b6c6cd369bd8c30b4ba8d7a8c776de0839a2824a56a48603f3e339d8745dcb09c907d788d3b6a10c669a64cb0b9d008a6c67"
}