Simultaneously iterating multiple sets of fields #22
Labels
No labels
bug
duplicate
enhancement/documentation
enhancement/feature
enhancement/organization
question
rejected
upstream
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
UserCurt/mpath#22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This issue suggests adding support for a way to iterate multiple sets of fields at different levels simultaneously with the same indexer, effectively a "respectively" approach. For example, normally
/{A,B}/{X,Y}would resolve to[/A/X, /A/Y; /B/X, /B/Y]. There is currently no mechanism to resolve to[/A/X; /B/Y]without manually doing it. A good way to do this has not been determined, and no firm proposal is put forward in this issue. A named argument could be provided, or syntax could be modified, though it should be possible to have a "respective" association without dimension association (unlike in #20). Either approach will be similarly complicated as #20 for reasons described in that issue.Is there a valid use case for this? A realistic example could help.