@fasterthanlime IMHO as long as it doesn’t slow down or affect the API of the no-trivia version, having a trivia-preserving mode with a similar API is cool. But it’s a too rare usage case to lose anything over.
@fasterthanlime oh and it should be full trivia and format, so array or string style in YAML (no quote, single quotes, double quoted or folded style string…), line breaks, end of line whitespace… all trivia necessary to edit one field and have only that line appear in a diff. Comment only seems a lot less useful.