flow icon indicating copy to clipboard operation
flow copied to clipboard

Rewrite route as a vec of names

Open andrewdavidmackenzie opened this issue 3 years ago • 2 comments

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

andrewdavidmackenzie avatar Mar 23 '22 16:03 andrewdavidmackenzie

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.

andrewdavidmackenzie avatar May 17 '23 21:05 andrewdavidmackenzie

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 "/"

andrewdavidmackenzie avatar Sep 04 '23 07:09 andrewdavidmackenzie