From 8b8a4a1432ae2d1c8f8b533610df35c707389609 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Wed, 4 Apr 2018 23:31:36 +0300 Subject: Add TODO to not lose it :-) --- TODO | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 TODO diff --git a/TODO b/TODO new file mode 100644 index 0000000..ab4e9f6 --- /dev/null +++ b/TODO @@ -0,0 +1,25 @@ +# The list of possible future improvements and ideas + +- Should we get rid of ProtobufStream and just use Stream? Can our write/read + procs interfere with other versions or should we prefix them with something? + Or should we make ProtobufStream a distinct Stream? Or does this matter at + all? + +- Make field names camelCase. This would make the generated code look more + Nim-ish, even though we can use most of the symbols in whatever way we want + as Nim ignores most underscores and case. + +- Preserve unknown fields on deserialize/serialize. This has been implemented + for protobuf 3.5.0 for proto3. I think it's a nice thing. + +- Proto2 extensions? This needs some thinking how to do this. How often are + extensions used? Is this necessary? + +- Options? + +- has/clear procs for oneofs to check/clear the whole oneof. Has is simple. + What about clearing, we are storing the fields in an object tagged with + {.union.} pragma. How does Nim behave when one field of a union is reset + (was thinking about reference types and GC)? + +- JSON mapping for proto3? -- cgit v1.2.3