I think there are a lot of disadvantages:
- It seems very useless to use records without
var
- I think it is very important having a way to access record’s data very quickly(like java invokedynamic)
- I think the real killer feature of dynamic invocation is absence of binary incompatibility.
So I do not understand why this proposal is for type
, I think It should work for trait
either.
For example
def newInstance[T](implicit tag: TypeTag[T]):T&Dynamic = new DynamicProxy(tag)
In such implementation it will be very useful at least for me.