Closed xiyler closed 5 months ago
While this indeed has advantages, it complicates and blurs the exact goal of Vinum's public functions (e.g does Read act as a simple :get()-like call, or generally "a reader function that reads data"?). Closed until there is evident need for such feature in the core library.
It could increase the productivity and the reusability in your code so that you don't have to worry about adding specific support for normal luau types.
If this is added, then something like so is very possible:
However, it's important to note that we should still have operators like Write to still work on state structs only, since calling Write on normal luau variables is almost always a mistake.
This is deferred to Vinum 0.5.