3 ms·
I've always been intrigued by the idea of a language that enforces a separation of queries and command. Functions (queries) return values and have no side-effec
by daltont 4y ago
I've always been intrigued by the idea of a language that enforces a separation of queries and command. Functions (queries) return values and have no side-effects, where procedures (commands) that can have side-effects and don't return a value.
- eterps 4y agoNice! I had the same thought :)
- quickthrower2 4y agoSolidity does this out of necessity. A command might cost you a week’s rent, whereas a pure query is free. The pure query inside a command might still add cost to the command though.