Update for
@voddan ,
@cedric and anyone else who was following the discussion yesterday on data classes:
https://gist.github.com/poetix/878dd73ccced0899ac34cdf7fd448eca - you can do away with the interface if you supply a one-line "destructor" function that knows how to pass the components of a data class instance to a receiver function of arity N. This is also more flexible, because you can choose which properties to send to the receiver and in which order.