Marshaling a nil slice outputs an empty sequence, not null

Bug #1231941 reported by Nate Finch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
goyaml
New
Undecided
Unassigned

Bug Description

Marshaling a nil slice writes an empty sequence to the yaml output, instead of null, which means you can't reliably round trip a slice and get out what you put in, if you care about the difference between nil and empty.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.