[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Re: OOBit
- From: "Gunnar Zötl" <gz@...>
- Date: Wed, 29 Sep 2010 10:03:13 +0200 (MEST)
I meant to comment ion this before:
> a) The patch does not forbid you to use the classic way. And even if
> you uses the REQUIRES SELF semantic (currently signalized by the
> "method" keyword) you can still use the colon.
it is not so much about what I can do, but more about what kind of code I will find. As I said before, I consider the lack of builtin magic behaviour (apart from the meta-stuff, which allows for some weird stuff) in lua a boon. And I honestly don't see what the fuss is about with the colons and all...
> that seems to be, for the OO paradigm as the "goto" was for the
> structured programing. So, as in PASCAL and C the goto still exists,
> the classical way should continue to address this kind of requirement
> - but, like the goto - should be used with caution.
well, for one, lua is not an OO language. And I would not want it to become one. Neither do, from what I gather, the authors. And, as Javier mentioned, these dotty thingy discussions die down rather quickly, so I don't really see a strong interest for this in the lua community either.
So I don't think your proposal is going to make it into the main lua codebase, and as far as I am concerned, that is a good thing. Nonetheless, make it a lua power patch and put it on the wiki next to the other dotty things, and it will probably find its users.