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
In #1475@astynax discovered the following asymmetry between --omissible-lists on the dhall-to-{json,yaml} side and --omit-empty in {json,yaml}-to-dhall:
omit-empty also "nullifies" not only empty arrays but also empty objects. omissible-lists translates only null ~> [] but not null ~> {}. So omit-empty and omissible-lists are not complete opposites.
It would be nice to increase the symmetry, but I'm not sure how…
The text was updated successfully, but these errors were encountered:
Thinking more about this, I find it hard to imagine a situation where you'd use yaml-to-dhall to generate a Dhall config containing {=}, so I'm not sure whether it's worth implementing the missing null -> {=} translation.
I also haven't come up with a better option name than --omissible-collections – so I guess it's good enough! --omit-empty should be kept as a synonym for compatibility though.
In #1475 @astynax discovered the following asymmetry between
--omissible-lists
on thedhall-to-{json,yaml}
side and--omit-empty
in{json,yaml}-to-dhall
:It would be nice to increase the symmetry, but I'm not sure how…
The text was updated successfully, but these errors were encountered: