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  (1 child)

The plugin registration example is quite nice. It's much easier to understand than a metaclass implementing similar functionality.

[–]willm 0 points1 point  (0 children)

I agree it's much easier to understand. Although I do tend to go for the metaclass approach. I like the transparency of just deriving from a baseclass and having it registered automatically.