Open edk0 opened 11 years ago
before we can say mark2 is beta software we need a plugin API that's nice enough that we won't have to keep changing it.
one problem with what we have now is that we fill Plugin with a whole load of things it either doesn't care about or is only likely to use once.
what might be nicer is if the plugins could use something like mark2.register(...) and leave self.register free for their own purposes.
mark2.register(...)
self.register
hiding the various _* attributes in a separate instance would be good too, as things could go very wrong if something accidentally overwrote them.
_*
I don't yet have any kind of plan, so I'm open to other suggestions
before we can say mark2 is beta software we need a plugin API that's nice enough that we won't have to keep changing it.
one problem with what we have now is that we fill Plugin with a whole load of things it either doesn't care about or is only likely to use once.
what might be nicer is if the plugins could use something like
mark2.register(...)
and leaveself.register
free for their own purposes.hiding the various
_*
attributes in a separate instance would be good too, as things could go very wrong if something accidentally overwrote them.I don't yet have any kind of plan, so I'm open to other suggestions