[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Need good examples of when prototype-based objects are better
- From: roberto@... (Roberto Ierusalimschy)
- Date: Tue, 16 Oct 2007 17:10:47 -0200
> OK, I understand that I can implement class-based OOP in Lua. Can you
> provide any analysis on when prototypes are better or worse than
> classes?
I think the papers about Self (the first language to propose
prototype-based OO) are a good reading (although of course their
analysis is somewhat biased). The classic "Self: The Power of
Simplicity" is a good start:
http://research.sun.com/self/papers/self-power.html
-- Roberto