Closed timotheecour closed 6 years ago
Thank you for the suggestions!
Setting fields with the message.a = 150
syntax is definitely something that we should have.
And I think that serialize
proc makes it easier for the user and it can be implemented using the current stream implementation very easily.
I'll have to dig their implementation more. Thanks for the pointer!
This simple attribute setting syntax and serialize/newMessage(data) have been implemented.
on API side, I much prefer the way it's done in dproto ; that one is in D but IMO should be doable in nim too:
instead of:
we could have:
and more generally for more complex example, see example in their readme