3 ms·
It is possible to do separate functions form data in OO languages. It is less convenient than it is on other languages, where the wrapper class is not needed.
by artsrc 14y ago
It is possible to do separate functions form data in OO languages.
It is less convenient than it is on other languages, where the wrapper class is not needed.
Separating functions from data is not the natural initial solution in an OO language, and is done as a refinement. It is not promoted as a default solution.
At some point the language is getting in the way and it better to go with something that supports what you are doing.