nimahkh / soft_bun

A lightweight and framework-agnostic reactivity system implemented in TypeScript
Other
10 stars 1 forks source link

Add Support for Grouping Operators in state.reactive method #28

Open Mostafa-Mohammadi opened 1 year ago

Mostafa-Mohammadi commented 1 year ago

The state.reactive method in our library currently lacks support for grouping operators, which are essential for controlling the order of operations within complex expressions. We propose enhancing the state.reactive method to accommodate grouping operators, empowering users to explicitly prioritize and control calculations.

Desired Enhancement:

state.reactive('c.d', '2 * ($a + $c.e + $c.z.r + $c.z.t.b)');

This proposed enhancement will empower users to harness the full potential of our library for intricate calculations and expressions.

Mostafa-Mohammadi commented 1 year ago

@nimahkh Could you kindly provide me with your thoughts or insights on this matter?