Skip to content

Feature Request: Add support for serializing comments #597

@Lazrius

Description

@Lazrius

Good evening.

I know such things have been discussed before, but I couldn't find in the issue a history a consensus on the idea of supporting comments. The main use case I see for this is large generated config files, where users might not be sure what various settings do.

While I am not entirely familiar with most of the formats reflect-cpp supports, I know from personal experience that both pugixml and yaml-cpp, which I understand this library uses, have support for both reading and writing of comments to a document. For this reason I see a lof of benefit if we had some kind of rfl::Comment processor that we could add to an rfl::Field to cause it to emit a comment (if the serialization format supports it, that is).

I don't know the support among other types, so I am unsure on the general feasibility, but I still think it would be quite helpful.
Thank you for your time and great work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions