Oct. 20, 2019
10:39 a.m.
Anders Hovmöller wrote:
We try to do the same thing in various libraries. We've settled on using existing python and end up with syntax like: class MyForm(Form): field = Field() or in your case class Colors(TokenContainer): red = Token() green = Token() blue = Token() (this is using tri.token).
This seems like a good approach and is similar to the strategy Enum uses.