Follow

ecmascript 

this code will be so much better once we have records and tuples

· · Web · 1 · 0 · 1

ecmascript 

right now i am cacheing objects as WeakRefs inside an object structure and using a FinalizationRegistry to delete the refs once they are no longer needed as a way of ensuring that the same object is returned every time from the same inputs

but like… it could just be a record and then i wouldn’t need to bother

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.