Re: Need standard kernel supported class in Lua, was: Macros and expressivity
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Need standard kernel supported class in Lua, was: Macros and expressivity
- From: "Luís Eduardo Jason Santos" <jasonsantos@...>
- Date: 2008年1月14日 19:40:52 -0200
100% agreed.
Lua doesn't need a standard 'class' system. There is the danger of locking people into it (a mild danger) but there is also the danger of bringing in things that are not necessary to many people.
If something is going to change in this direction, it will probably be one of those clever devices one of the Three Creators sometimes devise to solve a thousand problems with some simple concept, a handful of code and almost no overhead ;-).
OOP is just too messy, too complex a problem to fit this definition. It should be a *use recommendation*, not a language construct. And s such, should come in several flavors.
On Jan 14, 2008 7:29 PM, Javier Guerra <
javier@guerrag.com> wrote:
my two cents:
- most 'quick & dirty' programs doesn't need OOP
- the obj:mth() syntactic sugar trivially handles encapsulation and polymorphism
- most OOP simple (and not so simple!) designs doesn't need inheritance.
- if you need a full inheritance class system, there are several to
pick from. some of them really sophisticated.
- no matter how a class system is implemented, if it uses the
obj:mth() sugar for method calls, it can interoperate with other
systems.
so.... why the fuss?
--
Javier
--
Luís Eduardo Jason Santos
- References:
- Re: Macros and expressivity, Asko Kauppi
- Re: Macros and expressivity, Mark Hamburg
- RE:Need standard kernel supported class in Lua, was: Macros and expressivity, Grellier, Thierry
- Re: Need standard kernel supported class in Lua, was: Macros and expressivity, Fabien
- Re: Need standard kernel supported class in Lua, was: Macros and expressivity, Ben
- Re: Need standard kernel supported class in Lua, was: Macros and expressivity, Javier Guerra