Thiago Adams
2016-10-11 11:40:13 UTC
I have many functions that have the same meaning and apply for many objects.
For instance:
Init, Destroy, Swap, Delete, Create, Clear
Because of the lack of function overloading I use this pattern:
Object_XXX
Object_Init
I have other functions that may not apply for other object, but I keep the pattern just to avoid more cases.
Do you use some name convention?
How do you solve this "problem"?
I am aware of _Generic but I think it's not solve this problem well because it's centralized.
Should C add function overloading?
For instance:
Init, Destroy, Swap, Delete, Create, Clear
Because of the lack of function overloading I use this pattern:
Object_XXX
Object_Init
I have other functions that may not apply for other object, but I keep the pattern just to avoid more cases.
Do you use some name convention?
How do you solve this "problem"?
I am aware of _Generic but I think it's not solve this problem well because it's centralized.
Should C add function overloading?