3 ms·
> And no possible declarative model can capture it. Functions can. If functions are your declarative model, what would you say?
by anp 7y ago
> And no possible declarative model can capture it. Functions can.
If functions are your declarative model, what would you say?
- erikpukinskis 7y agoWell, in most apps you will layer both kinds of models. You’ll have SQL which is declarative, but you’ll call those queries as procedures. The boundaries around a React component are declarative, but the render function is procedural. So when I talk about declarative models I’m talking about the Swiss cheese of declarative models with procedures mixed in.
- anp 7y agoIn moxie, everything is procedural, as it were. The declarative syntax is a way to invoke "imperative but idempotent" functions, and the core runtime provides tools for wrangling mutability and repetition in those functions.