Re:Object-oriented techniques in C
by MichaelGG on Tuesday September 22, 2015 @07:31PM
(#10262456)
Thanks for the correction. I had misread and thought all functions were called with member syntax.
I guess in simple cases like this the difference between OO and other styles are pointless. I'm just thinking that if I were to write it in a functional language, it'd probably a very similar API, though possibly/probably returning a new state vs modifying.
I guess in simple cases like this the difference between OO and other styles are pointless. I'm just thinking that if I were to write it in a functional language, it'd probably a very similar API, though possibly/probably returning a new state vs modifying.