Rewrite route as a vec of names
parse the string into enum of different types and make many of the other functions that query things about it simply return that info
- route_type
- without_trailing_index
- is array selector
recalculate on modifications insert, extend etc etc
Vec<Name> Is array index considered a name?
Clarify in docs and code that a route is a sequence of names, and have functions that assemble or disassemble a route use Names instead of Strings.
Names are used for
- flows (including “root”)
- functions
- inputs
- connections
And a Route uniquely identified one of them within the flow hierarchy.
Make it internally a Vec<Name> (if array index is a valid name?). digit (array element selector) can only be the last segment, or can be anywhere? Anywhere I guess... implement to_string() or display() that uses join() with "/"