2 ms·
It's a way to describe the shape of data, a bit like schema but focus on non-exhaustive description and composability. The practical uses can be generative test
by fulafel 8y ago
It's a way to describe the shape of data, a bit like schema but focus on non-exhaustive description and composability. The practical uses can be generative tests, is-a queries, conformity tests, "describe deviations from spec" queries, etc. You can also write spec for diffs in data structures, so you can use it for state changes. It's pretty open-ended.