vinum-team / Vinum

A modern reactive state management library for correctness and speed.
MIT License
16 stars 1 forks source link

Standardized Reading and Writing #15

Closed sinlerdev closed 1 year ago

sinlerdev commented 1 year ago

In Vinum, specifically with writing, there is no standardized writing solution. This problem arises when generally working with objects or tools that "just change the value".

Additionally, Vinum objects are different in how they store their values- for example, Reflects don't store values on their own, while Records do- this creates a complexity when working with objects such as Writables, since then you have to worry a lot about edge cases, and implementing support for specific objects.

The solution I have in mind is to have two internal methods that perform the reading and the writing (alongside writing, dependency stuff can be invoked as well), that are invoked using whatever the new standardized APIs that will be added.

sinlerdev commented 1 year ago

Has been implemented.