Closed conradhappeliv closed 2 years ago
Hi, conradhappeliv.
Thank you for improving the product, but your PR breaks backwards compatibility.
If you want, you can write code that supports both (old and new) methods of setting repeated fields: In addition to this, you need:
Right now, the only way to "reset" a repeated field seems to be clearing the field (which I believe to be broken due to #21) and re-adding all entries in a loop - for example:
It would be super cool to get a method where we could do this in one statement - i.e.
msg.set_repeated_field([1, 2, 3])
!