3 ms·
If you can squeeze it in.... A magical assignment like :== which declares the left value is ALWAYS equal to the expression on the right after that point, so tha
by mikewarot 2y ago
If you can squeeze it in.... A magical assignment like :== which declares the left value is ALWAYS equal to the expression on the right after that point, so that if any part of the expression on the right changes, the left gets updates as a dependency.
I once saw this in a language called metamine and the demo was amazing, mixed imperative and declarative programming interweaved.
- blharr 2y agoHmm, this can be done with macros in C/C++ right? It could also just be defined in the "setter" for x, that x Y = x + 2, so everything you update x you update Y I don't particularly like it because, what if you want to change y? Do you have to change x correspondingy?