[Gridflow-dev] ping (fwd)
matju at sympatico.ca
Thu Sep 16 23:25:08 EDT 2004
On Thu, 16 Sep 2004, Tom Schouten wrote:
> > Closure style is not OO. It's afaik a step between classic structured
> > programming and OO.
> what's the core of the difference then? do frozen contexts in closures
> have to be immutable? (evaluation vs mutation?)
Mutability has nothing to do with it all.
Here's a bunch of features that are rather expected in OO:
1. self: some sort of context that methods are executed in
2. class: some kind of container for common object behaviour
3. superclass: inheritability of classes
4. supermethods: ability to express a special method in terms of
a general method
5. dispatching: when using an object you don't have to know its class to
be able to call its most special method of a given selector. That is you
may use subclasses as if they were any of their superclasses.
yet some languages almost ditch rule #1 (LISP) and some languages almost
ditch rule #2 (SELF).
afaik #4 is not obvious to do in a closure system.
Mathieu Bouchard http://artengine.ca/matju
More information about the Gridflow-dev