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
-
Init()
,Reinit()
,Deinit()
), All developers can easily track the object life cycle.Facade
interface type instead of a pointer to its type asstate
and even whystate
type is internal to its package! It is tough to track all usage of returnedFacade
and 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