status-im / nim-toml-serialization

Flexible TOML serialization [not] relying on run-time type information.
Apache License 2.0
37 stars 7 forks source link

Investigate the feasibility of adding flavor-like mechanism #84

Open jangko opened 5 months ago

jangko commented 5 months ago

As the usage of toml-serialization is growing beyond a mere config file parser, there is potential serializer clash between different subsystem using toml-serialization.

A lesson learned from json-serialization library, flavor-like mechanism is a good candidate to prevent such clash or contamination.

The granularity of the flavor should be configurable by user. Backward compatibility is mandatory. toml-serialization stability, flexibility, and it's simplicity draw more users.