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
Looking at the code a little, I saw that a good part of the structures use a getter pattern. I find this a shame because in fact, the Setting or BundleSettings structure is still missing a lot of keywords, and having to implement a setter each time is redundant. It feels like Java.
In addition, it does not contribute much in the majority of cases because
the structure is passed between functions as a non-mutable ref, so there is no risk of modifying it inadvertently.
getters provide an impl of default(), which can be automatically done with serde.
So can I start adding public fields?
The text was updated successfully, but these errors were encountered:
Looking at the code a little, I saw that a good part of the structures use a getter pattern. I find this a shame because in fact, the Setting or BundleSettings structure is still missing a lot of keywords, and having to implement a setter each time is redundant. It feels like Java.
In addition, it does not contribute much in the majority of cases because
the structure is passed between functions as a non-mutable ref, so there is no risk of modifying it inadvertently.
getters provide an impl of default(), which can be automatically done with serde.
So can I start adding public fields?
The text was updated successfully, but these errors were encountered: