specter 2025-09-15

So, you’re saying that it’s better to use something like TREE-VALUES that you can control in terms of how it actually walks the structure.

so you precisely control where it walks

👍 1

In the Specter documentation, it gives an example of a recursive path, TREE-VALUES (see here: https://github.com/redplanetlabs/specter/wiki/Using-Specter-Recursively). Would it be more typical to create a recursive path for TREE-VALUES or to use walker? Was TREE-VALUES created for the sake of showing how a recursive path can be built and walker is how you’d really access tree leaves, or is it actually what you’d want to do?

it's usually better to encode the actual structure of your data rather than do a blind walk

doing a blind walk can lead to unintended consequences, like modifying or selecting something you didn't intend

in my experience