News for hackers. Stuff that matters.
Re:Arguing against using protobuffers by Boxxed on Wednesday October 10, 2018 @08:13PM (#18190058)
No, you're right. The canonical way to store a map in capnp is to use a List<Pair<key, value>>. Personally it doesn't bother me that much (mostly from an aesthetic standpoint) because it is not meant as an in-memory, working data structure.

What does bother me is that in the above generic type, "key" and "value" must be pointer types (i.e. non-scalar). The reasons are not unreasonable but it's definitely obnoxious in practice.

There are no comments on this comment yet.