ldionne / react

A C++11 framework for incremental computation.
Boost Software License 1.0
7 stars 2 forks source link

What this project about? #14

Open YarikTH opened 3 years ago

YarikTH commented 3 years ago

First and main question: is it about the same reactivity as in the following examples?

variable a = 1;
variable b = 2;
function c = a + b;
court << c.get(); // 3
a = 10;
cout << c.get(); // 12
variable a = 1;
variable b = 2;
function c = a + b;
c.subscribe([](int value){ cout << "c->" << value; });
a = 10; // "c->12"
a = 10; // no output

But with calculating graph made at compile time or this library is about the completely different meaning of reactivity?