Hacker News new | past | comments | ask | show | jobs | submit login

> And no possible declarative model can capture it. Functions can.

If functions are your declarative model, what would you say?






Well, 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.


In 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.



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: