You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the first is unnecessary too.
The only case the first syntax I find it to be worthy is the case that a user is not familiar with OOP and sees function calls "as commands" (like "print ' text text' " ), of course one import (from treematcher import find_matches) will be needed. In that case the call maybe is a bit easier to understand.
The other is shorter and more clear, if you can think in OOP way.
Keeping both may make the tutorials unclear and the intention to help not so experienced users may end up making things more complex (at least when I meet something new I just want to know how to do make it work and stick with it at first), so I suggest to keep only the second.
we can maybe keep the algorithm as separate functions (like now) and add methods to the TreePattern class as needed. With the current TreePattern.find_matches method should be enough for now.
We need to decide what strategy is best (or maybe keep both), and organized the code in treematcher consequently. pros? cons?
The text was updated successfully, but these errors were encountered: