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
I think it's very important that we're able to access Celest's serialization for other purposes:
It's very useful, why not?
If we have access to it, you make it testable.
Third, making it accessible will help when we need to migrate when the model evolves.
If you don't, you force me to use other serialization techniques, which is duplicating not only the code, but may result in different serializations, which complicates things for no reason.
That way, Celest users don't have to use instance, and we don't make instance part of the public API. But feel free to ignore these if you don't think it's a good idea.
The text was updated successfully, but these errors were encountered:
I think it's very important that we're able to access Celest's serialization for other purposes:
So, basically, explain that this is possible:
Note: Maybe make it a bit simpler, but defining two extra static methods,
serialize
anddeserialize
:So that we can write:
That way, Celest users don't have to use
instance
, and we don't makeinstance
part of the public API. But feel free to ignore these if you don't think it's a good idea.The text was updated successfully, but these errors were encountered: