Entity / Expressions

Expressions: one question, every reader

"Published posts, newest first." "Only the author may edit." "A published post has words." In most applications each rule is written three times: as SQL on the server, as a filter over cached rows in the browser, and as validation in a form. Whenever those copies drift, the page shows rows or allows actions the server rejects.

Foldkit Plus avoids drift by letting you write each rule once as an expression: a frozen value built with Expr from foldkit-entity. Each consumer interprets the exact same value—the database adapter compiles it to SQL, the server evaluates it in memory, and the browser judges the rows it holds. A shared conformance suite holds all interpreters to the same semantics, and any interpreter that lacks a row or operator reports unknown or refuses rather than guessing.