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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Jun 7 12:45:27 BST 2023


--- Comment #57 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Dmitry Selyutin from comment #55)
> OK, so basically the idea is that visitor calls special magic method.

there i was copying the "accept()" method from here:

i don't actually like the name of the function, but the *separation*
of the actual-walking, that's the important bit.

i really like the contextmanager and __call__() here, much better than

> I have
> no problems with that, that's just another option to reach the same goal.

it's very subtle, it's part of the "Model View Controller" paradigm.

what you have done is {ModelViewController-all-in-one}

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

More information about the libre-soc-bugs mailing list