Closed serjek closed 3 years ago
AFAIK the problem is that this would require changes on compiler side to allow for this syntax. You can simulate this by using tink.Anon.merge
, it is maybe less "exciting" to read, but does the work, and it is what "..." in coconut views uses behind.
yeah that's how I do it now, with tink.Anon.merge
, so I just thought it would be nice to have same spread syntax across all coconut.
Yeah, the best we can do right now is merge(this, someExludedProp = 'excluded')
if you import tink.Anon.merge;
FWIW it does have a lower token count ;)
Allow spread model into another model like it is now possible with model to view spread. Like so: