Open btford opened 11 years ago
it might be better to have a pattern that embraced the tree structure of source code, I.e. that of a tree.
I can think of some prior art that is already used to traverse and manipulate trees, https://npmjs.org/package/traverse https://npmjs.org/package/burrito and https://npmjs.org/package/falafel and of course, our old favorite https://github.com/jquery
/cc @dominictarr
After much investigation, node streams seem sort of like the right model. I say "sort of" because I just read all the things about them, and worry that this is a solution looking for a problem type deal.
Notes/Observations
.pipe()
is perfect. You aren't coupled to either end of some pipeline.Questions