3 ms·
Interesting thought. One can argue that the ability to write better OO code is already present in modules, functions, processes, and asynchronous message passin
by bitdiddle 18y ago
Interesting thought. One can argue that the ability to write better OO code is already present in modules, functions, processes, and asynchronous message passing. Threads are needed in Ruby and Java to handle the asynchronous piece. Consider also Erlang's pattern matching style of defining functions, which reminds me a bit of generics in CLOS. Lisp like atoms are also a very useful device in Erlang.
So it strikes me that this proposal is sort of re-inventing in Erlang something that already exists. Moreover when one throws in OTP and it's frameworks for structuring collections of processes, I'm not quite sold on the benefits of doing this beyond making Erlang accessible to the larger audience steeped in the OO way.
Corrado Santoro has done a little bit with this in his agent technology http://www.diit.unict.it/users/csanto/exat http://www.diit.unict.it/users/csanto/exat
- davidw 18y agoI'm not sure his approach is a winner, but I do agree that Erlang feels much slower to use than Ruby, even after taking the time to rejig your brain for its style of doing things, and I think the idea of layering some more stuff on top to make it convenient isn't a bad idea at all. Perhaps that 'stuff' wouldn't end up actually being Ruby, but it's a good starting point.