> You can use closures or pass the data parameter as an input to the function.

In some sense closures and objects are isomorphic, as are functional and OOP. 
There’s a famous old _koan_ about this:

> The venerable master Qc Na was walking with his student, Anton. Hoping to 
> prompt the master into a discussion, Anton said “Master, I have heard that 
> objects are a very good thing — is this true?” Qc Na looked pityingly at his 
> student and replied, “Foolish pupil — objects are merely a poor man’s 
> closures.” 
> [(continues...)](https://citizen428.net/blog/of-closures-and-objects/)

—Jens

Reply via email to