6 ms·
My take is that it is essentially that ruby's methods (the basis of OO) are basically based on a simple system of (what ruby refers to as) procs and lambdas (ok
by twelvechairs 13y ago
My take is that it is essentially that ruby's methods (the basis of OO) are basically based on a simple system of (what ruby refers to as) procs and lambdas (ok, the way they are implemented is not quite the same as the 'proc'/'lambda' objects but you can easily convert between them). These are quite functional and lisp-like. Not that it is done, but you can reduce all of your complex methods to classless functions if you want.
Not sure if this was new in Ruby or came from Smalltalk or somewhere else though.