Understand NimYAML serialization limitations
develNimYAML provides serialization (dumping) and deserialization (loading) for Nim objects, but currently has the following limitations for types used in loading and dumping:
- Polymorphism: You cannot load a
ref Childinto a field defined with typeref Parent. - Generic objects: The auto-generated loading/dumping functions cannot process instances of generic objects within the type hierarchy.
- Default values: NimYAML does not support default values introduced in Nim 2.0. It uses its own
{.defaultVal: "foo".}pragma instead.