mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 12:00:29 +00:00
This standardizes on having ValueStore and related structures provide printing, removing the handlers in file.cpp. The `[]` is provided for empty sequences versus if there was simply nothing, in which case it would be a sequence when non-empty, and a null value when empty. Consistently (and explicitly) providing sequences feels easier to understand. The changes to the output yaml are overall more terse. My hope is that this is an improvement for most readers. Also fixes printing of APInt, defaulting to unsigned for consistency with Carbon's use.