Hi, These questions might be obvious, but I want to make sure, just in case.
Regarding union resolution, the spec says to take the first match when comparing them. What if the first match is "promotable"? I would expect preference for the first "exact" match, if both an exact and promotable match existed. example, my writer puts a "long" and my reader has union: [ double long ] The first match is double (due to promotion), but in this case I'd probably want to use long, correct? but if my reader is: [ double int ] Is it ok to settle for conversion to double? Or do we only allow exact matches in union comparisons? Second clarification is about usage of unset vs. signaling error: in the rules if we cannot match enums, we declare it unset, but if we cannot match unions, we signal error. It seems for one type we take a best effort approach and in the other we give up. I'm just trying to understand what is different about the two cases. And assuming we're doing this matching at runtime, for example, reading an rpc message, does signaling error mean we drop the message, or still pass parts of the message that could be resolved? thanks, Scott
