You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using individual variables for elements in a reactive chain forces you to keep using .get() and .set(). Syntax would be cleaner if this could be avoided through the use of getter and setter functions on object properties. All variables linked to a template could be hosted within a single 'document' (ie. the graph of data used within a reactive view).
A simple function called 'reactive' which makes changes to any object observable could make for some very clean syntax like the following...
I'm obviously using a simple helper function called 'array' because I've got unlove for brackets but it's just as nice when a standard array is being passed to the 'reactive' function.
The text was updated successfully, but these errors were encountered:
Digging into this now - the syntax will likely be a bit different, in that you need to define the property descriptors based on the values (post-constructor-time) or some field spec (at class definition time).
Using individual variables for elements in a reactive chain forces you to keep using .get() and .set(). Syntax would be cleaner if this could be avoided through the use of getter and setter functions on object properties. All variables linked to a template could be hosted within a single 'document' (ie. the graph of data used within a reactive view).
A simple function called 'reactive' which makes changes to any object observable could make for some very clean syntax like the following...
I'm obviously using a simple helper function called 'array' because I've got unlove for brackets but it's just as nice when a standard array is being passed to the 'reactive' function.
The text was updated successfully, but these errors were encountered: