dproto icon indicating copy to clipboard operation
dproto copied to clipboard

Implement map data type.

Open redstar opened this issue 8 years ago • 2 comments

The map data type has a special proto syntax. The serialization of

map<key_type, value_type> map_field = N;

is backward compatible to

message MapFieldEntry {
  key_type key = 1;
  value_type value = 2;
}

repeated MapFieldEntry map_field = N;

The option [packed = true] is not allowed on map fields.

redstar avatar Aug 27 '17 09:08 redstar

I still work on the serialization. My question is if the general design is welcomed or if there are better ideas.

redstar avatar Aug 27 '17 09:08 redstar

I have been away from dlang for a while (basically since graduating college), but I took a look at your design and it seems like a good starting point. If you're still open to developing this, I can take a look once serialization is implemented.

msoucy avatar May 31 '19 14:05 msoucy