hrszpuk / odin-ini

:fire: An easy to use and highly customizable INI serialiser/deserialiser for Odin!
MIT License
1 stars 0 forks source link

Apply `Options` configuration rules to parsing #25

Open hrszpuk opened 4 months ago

hrszpuk commented 4 months ago

The Options.Rules.* need to apply to parsing and the reaction:

hrszpuk commented 4 months ago

After going over how these may differ for parsing/serialisation I'm leading towards separating them in the Options struct again. Ah, it is simpler to have the same bool for both parsing and serialisation, but I feel like it might be easy to misinterpret some, and some doing even make sense for both cases (e.g. IgnoreDelimiterPadding doesn't apply to serialisation since it wouldn't ignore something it is generating? ).