You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think I understand what you are suggesting here. How would the seq! you quoted look like? Is this to help avoiding all the chained flat_maps?
In case it is to help with the chained flat_maps, a nice thing to have could be _temporary variables (prefixed with _ that don't make it into the struct, but can be referenced in later fields).
That is a separate concern and if you want to find a way to solve it, I would recommend opening a separate issue.
winnow has debug tracing for parsers built in. You can do cargo test -F winnow/debug -- test foo -- bar and it will show you each parse operation (that has a trace combinator call) attempt the parse with the result.
seq! inserts a trace for the struct as a whole but the proposal here is to add a trace on each field so the user automatically gets names for the operations, making it easier to follow what is happening.
seq!
will trace the struct name for the whole thing but we can also trace the name of the individual fields (maybe also the tuple index?). This would automatically provide more context for the user as they go which can help with complexseq!
calls like https://github.com/MIDAS-rs/midasio/blob/cc2ed1e54f8fc40eb7bfabd79d490ec4e8ba38b2/src/event.rs#L115-L139The text was updated successfully, but these errors were encountered: