3 ms·
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
by MichaelGG 11y ago
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.