Closed KashubaK closed 1 year ago
castable
is not the right word for thisWe need a better word to describe the behavior here. You're kind of casting, but in regards to memoizing by instance/wrapper class combo it is not clear.
Closed in favor of #48
See #45
This is an alternative implementation of model casting, that is less verbose and more convenient.
Much of the resulting behavior is the same, with a few differences:
TODO:
It would be nice if
castable
could be generic, i.e:In this case,
Genericable
could be applied to any model since it doesn't depend on the model's state.