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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Jun 18 16:27:59 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1094

--- Comment #149 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Dmitry Selyutin from comment #148)
> I forgot to mention 1 step in roadmap: we miss support for dataclasses. I'll
> add it too. I think this will be a bit trickier to make it generic, though,
> since dataclasses do not inherit from some special class; we, however, do.

it'll need dynamic detection: i'm fairly certain you can do better than
isinstance(dataclass) and ha, probably by registering with @thing just
like @register(object) i suspect @register(dataclass) would work just as
well

oh btw one thing: i do strongly suggest removing all "import x as _x", it is
non-standard practice across the entire python community.  i recommend using
the standard python practice established for over 20 years of using "__all__"
instead.  aside from anything it reduces the number of words and symbols,
and reduces complexity.

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


More information about the libre-soc-bugs mailing list