[Libre-soc-bugs] [Bug 1094] insndb instruction database visitor-walker is needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Jun 10 09:27:14 BST 2023


--- Comment #83 from Dmitry Selyutin <ghostmansd at gmail.com> ---
My point is, inheriting all stuff from Node gives this:
1. No need to check walk method availibility via isinstance/try+catch/hasattr.
We can _assume_ everything "walkable" is Node-derived.
2. We can therefore extend Node-based stuff without problems. The first
extension might be Node.path (or whatever name we can invent for it).
3. Some things can be stubs or generic (cf. Nodes.walk, Dataclass.walk; perhaps
I'll add some stuff for Tuple-like, because we have several tuple-based things
which should also be walkable).
4. It's just logical that everything which can be used in walk/visit API
corresponds to some interface.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list