Coding 2022-12-07
All right, I ended up spacing out and it's late, so here are some quick notes about the helper functions I want to consolidate:
- There is an initial call that produces a Facts[Objects], followed by merging a limited amount of data into the Objects.
- Then, for each Parametric passed in, just yield from the Facts, given the Objects.
- I was interested in verifying the Objects against the stated requirements of the Parametrics.
I'm not sure how much caching I want to do. I guess, on reflection, I could get away with making this a helper function, but it's a little tricky to visualize the right interface. Like, is def __call__(self, facts: Facts[Objects], overrides: Objects, *parametrics: Parametric[object]) -> Facts[None]: reasonable? I'll need to think about it.
For now, I'll get ready for bed.
Good night.