You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ruamel.yaml has support for round-trip loading and dumping which preserves comments, anchors, tags and format (or at least it should). Having an equivalent feature here would be necessary for moving away from ruamel.yaml. If this can be added inside the native clojure implementation, then that's a big step up since in ruamel.yaml this is only supported for the pure python implementation
@LecrisUT Thanks. Several YAML implementations roundtrip comments. go-yaml, yaml.js, snakeyaml-engine, ruamel and others.
They all do it differently and all have their of sets of bugs.
There is no way to fully support comment roundtripping, but there are multiple ways to partially do it.
YAMLStar (and go-yaml and later pyyaml) are about to support a plugin system and one of the plugin ideas is comment loading and dumping. YAMLStar will provide a couple plugins for comments and give the ability for anyone else to write their own if they don't like the default ones.
Activity
ingydotnet commentedon Aug 24, 2026
@LecrisUT Thanks. Several YAML implementations roundtrip comments. go-yaml, yaml.js, snakeyaml-engine, ruamel and others.
They all do it differently and all have their of sets of bugs.
There is no way to fully support comment roundtripping, but there are multiple ways to partially do it.
YAMLStar (and go-yaml and later pyyaml) are about to support a plugin system and one of the plugin ideas is comment loading and dumping. YAMLStar will provide a couple plugins for comments and give the ability for anyone else to write their own if they don't like the default ones.