Curious if there are any ideas around how spec2's select would allow for requiring deeply nested keys based on some dispatch function? e.g., (if the event is type "a" then a specific set of keys are required, if event type is "b" then ...)
@kenny if I understand correctly select is there to be used in specific contexts. Not sure if that answers your question.
Two things here - first selects do not currently have the ability to handle maps of colls of maps of ... , only nested maps. That is something we are thinking about though as it is very common. Second, there is not currently any way to indicate any sort of predicate or condition on the nested data like you're talking about but that is something we're thinking about. What you're asking for might be beyond where we end up though, not sure yet.
select is currently only about nested map structures (what keys are provided at each level)
> there is not currently any way to indicate any sort of predicate or condition on the nested data like you're talking about but that is something we're thinking about. This sounds exactly like what I'm after 🙂 This is such a big issue for us I may need to tackle it internally for now. Would love to know what those thoughts are. Though, I assume they are not public yet?
sorry, not working on this right now
No. Essentially I'm curious what the story is wrt deeply nested multi-spec and select since that is a common use case.