chaokunyang commented on issue #2658: URL: https://github.com/apache/fory/issues/2658#issuecomment-3331991159
> [@urlyy](https://github.com/urlyy) We also need to refine the API in fory rust, for example: > > 1. use `read/write_xxx` style API for Buffer methods > 2. use `read/write` for serializer method to make it distinct from serialization entrance method `serialize/deserialize` > 3. I'm not sure, maybe need more discussion: add `fory_` prefix to serializer trait methods, so that there won't be any name conflict in user struct when it implement other trait with same method name. Users may annotate their struct for json serialization too, and maybe some lib will generate a `read/write/serialize/deserialize` method too. The 3rd point may not be important, since most of times, users won't call into this method. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
