Issue #3085 has been updated by John Higgins.


I don't believe any change is required here. Psych isn't trying to dump Ruby objects for reloading into Ruby - it's trying to dump Ruby objects so they can be loaded back by ANY language that has a YAML parser. As with most language-independent specs - YAML unfortunately doesn't have as much precision as Ruby does in this area - but for YAML it's more important to be language-independent than full precision over and above the spec.

If one wishes to dump an object and reload it with full fidelity - isn't that the job of Marshall?

As a side note - JSON exhibits the exact same behavior here - again it's trying to be language-independent rather than full precision.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3085

----------------------------------------
http://redmine.ruby-lang.org