by timonoko · 4y ago · 0 comments
"A=B+13 ei pysy samana". (= Does not stay the same)
After some pondering I realized that this man did not see the program as sequence of actions, but statements of relations and truths, which computer magically solves.Very interesting idea, could this be more natural way of programming? But then I found MuMath from some BBS, and realized this new programming language of mine was just extended equation solver.
Here's a trivial example:
Column {
Dial {
id: dial
from: 10
to: 100
value: 30
}
Text {
text: (dial.value * 100) + "°C"
font.pointSize: dial.value
}
}
whenever the slider's value changes, all the properties of the text are automatically updated. Live demo: https://tinyurl.com/2p5z5ufc