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
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