Hacker News new | ask | show | jobs
by pdonis 4912 days ago
Person is clearly a subclass of Mammal

Well, of course we'll need to use multiple inheritance. :-)

we should consider discarding the Suable typeclass

I would recommend keeping it as an interface definition, to make clear that it is a logically distinct thing; LegalEntity would just implement the interface.

Will the constitution refer to Person, or to LegalEntity?

Depends on the context, I would think. Sounds like we'll need plenty of coders to make this work... :-)

Why can't all LegalEntities be acted upon in the same way?

Obviously we haven't defined all the relevant interfaces and subclasses :-). The one you're looking for here is Jailable, which evidently would be implemented by Person but not Company, and so would not be implemented in the LegalEntity base class.

Obvious next question: what language do we start the implementation in? I vote for Python. Anyone for starting a github project?