You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that glaze supports TOML, I was thinking about using it to create config files.
That works nicely, as expected. Yet, one thing could be improved IMHO.
Similarly to skipping NULL values, I would find it desirable to skip the default values of a struct on serialization.
Is this already possible? I couldn't find anything, but maybe I'm overlooking something.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Now that glaze supports TOML, I was thinking about using it to create config files.
That works nicely, as expected. Yet, one thing could be improved IMHO.
Similarly to skipping NULL values, I would find it desirable to skip the default values of a struct on serialization.
Is this already possible? I couldn't find anything, but maybe I'm overlooking something.
So essentially, what I'm talking about:
Is currently serialized as
But I'm looking for:
And if port number 4242 was specified, it should get serialized as:
Beta Was this translation helpful? Give feedback.
All reactions