3 ms·
I did something similar to this, though much smaller, a while back, using (parts of) JavaScript as the host "functional" language, just as a thought experiment.
by Roboprog 16y ago
I did something similar to this, though much smaller, a while back, using (parts of) JavaScript as the host "functional" language, just as a thought experiment.
http://roboprogs.com/devel/2010.06.html#2010_06_02 http://roboprogs.com/devel/2010.06.html#2010_06_02
It's interesting how much easier it is to assemble functionality with closures in many cases, when all you want is to initialize ("construct") something that you are going to make one (1) call to, or at least one kind of call, repeatedly. Interesting? Maybe obvious.
For a class with many methods, I think OOP does have value, but one does get tired of it being presented as the One Way.