Improvement: Add ObjectLifeCycle pattern methods to all structs #544
OmidHekayati
started this conversation in
Ideas
Replies: 2 comments 7 replies
-
|
In other words, API must be flexible. Accepting Interfaces and Returning Structs. Robustness principle say: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
In large modules like |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Init(),Reinit(),Deinit()), All developers can easily track the object life cycle.Facadeinterface type instead of a pointer to its type asstateand even whystatetype is internal to its package! It is tough to track all usage of returnedFacadeand how others use or keep a reference to it and also hard to make suggestions to improve performance.Beta Was this translation helpful? Give feedback.
All reactions