Open gene-pavlovsky opened 6 years ago
proposition to add a @:proxy meta or something like this to forward observability for given (or all) props for nested models.
current workaround is a bit cumbersome:
@:observable var nested:NestedModel; //can change over time so binding to `model.nested.observables.prop` will not work anymore once it is changed
@:computed var prop:NestedProp = nested.prop;
...
I think coconut could benefit from it's own extended version of tink_lang's
@:forward
Limitations of using @:forward now:
@:observable
), setters will be generated (on the other hand it can be argued that the VOs should be properly defined as immutable)