3 ms·
I second this. I think that a class offers a simpler contract than a closure or a curried function, with the difference that you use "this" to refer to the encl
by pmoleri 8y ago
I second this. I think that a class offers a simpler contract than a closure or a curried function, with the difference that you use "this" to refer to the enclosed objects. However, the same keyword can be used to hide state and that can lead to obscure or unexpected behaviors.