lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Sean Conner, Steve Donovan and Javier Guerra Giraldez,

You are trying to say the same thing.
The koan(?) from Sean Conner is easy and I feel I understand what all of you are trying to say.

When I first saw OO, I felt OO is the one I can do everything only if I can understand it and can freely use it.

But now you say OO is never enough. There is another nicer and better.

I understand what you are trying to say now.
I even feel sorry for you because you wrote too much to me spending your expensive time.

Thank you very much.

Sincerely
Journeyer


----------------------------------------
Journeyer J. Joh
o o s a p r o g r a m m e r
a t
g m a i l  d o t  c o m
----------------------------------------


2014-02-27 15:51 GMT+09:00 Sean Conner <sean@conman.org>:
It was thus said that the Great steve donovan once stated:
> On Thu, Feb 27, 2014 at 1:57 AM, Sean Conner <sean@conman.org> wrote:
> > You can also write Lua in a functional style (you don't get lazy
> > evaluation, but neither do you have multiple inherentance), which I feel is
> > worth looking into.
>
> Absolutely, and Javier would endorse this as well, I think. The
> mindblowingly powerful concept of "closures" = functions + bound state
> makes a lot of those awkward patterns very straightforward.

  Ah, I am reminded of this koan:

        The venerable master Qc Na was walking with his student, Anton.
        Hoping to prompt the master into a discussion, Anton said "Master, I
        have heard that objects are a very good thing - is this true?" Qc Na
        looked pityingly at his student and replied, "Foolish pupil -
        objects are merely a poor man's closures."

        Chastised, Anton took his leave from his master and returned to his
        cell, intent on studying closures.  He carefully read the entire
        "Lambda: The Ultimate..." series of papers and its cousins, and
        implemented a small Scheme interpreter with a closure-based object
        system.  He learned much, and looked forward to informing his master
        of his progress.

        On his next walk with Qc Na, Anton attempted to impress his master
        by saying "Master, I have diligently studied the matter, and now
        understand that objects are truly a poor man's closures." Qc Na
        responded by hitting Anton with his stick, saying "When will you
        learn? Closures are a poor man's object." At that moment, Anton
        became enlightened.

  -spc (the sound of one hand typing ... )