[rb-general] BUILD_PATH_PREFIX_MAP format spec, draft #1

Ximin Luo infinity0 at debian.org
Sat Jan 21 21:09:00 CET 2017

Daniel Shahaf:
> Ximin Luo wrote on Sat, Jan 21, 2017 at 13:50:00 +0000:
>>   - Decoders in most programming languages decode to a { key -> value list }
>>     rather than a list of pairs as we require, and there is no simple way to
>>     massage this into a list of pairs that still preserves ordering.
> Preserving ordering raises an interesting question: what do we do when
> two key-value pairs have the same key?  Do we leave that undefined, or
> former wins, or latter wins…?
> That's entirely independent of which encoding is chosen.
> [..]

I didn't mention this explicitly but the map_prefix function I wrote would apply the rightmost mapping. This is what GCC does already.


GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE

More information about the rb-general mailing list