logoalt Hacker News

foxestoday at 2:02 AM1 replyview on HN

The current state must satisfy all constraints?

Eg some table Users -> you start with `add user_id` , `add org_id`, `remove org_id` for example, so then the current state is `Users{ user_id }`. But you trust the compiler to derive that, and then when you want to do something with Users you have to scope into it, or tell it how to handle different steps in that chain.

Im not saying this is not equivalent at the end of the day, just if anything surfaces it this way, or makes it more ergonomic.


Replies

throwup238today at 2:30 AM

Ah I think I misunderstood. That sounds like event sourcing? As far as I know that has never been implemented at a language level.