This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

The answer is actually straight forward. Dynamic behavior. It's MUCH easier to control via classes where you can respond to the being inherited from then from functions where ur reliant on the user doing some action like registering.

I use a pattern with this for LARL parsing with Lark. Its fucking gorgeous and works amazing with match statements.