[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Thought experiment: what would you remove from Lua
- From: Coda Highland <chighland@...>
- Date: Sat, 22 Sep 2018 18:18:10 -0500
On Sat, Sep 22, 2018 at 2:51 AM, Lorenzo Donati
<lorenzodonatibz@tiscali.it> wrote:
> On 11/09/2018 22:14, Roberto Ierusalimschy wrote:
> [...]
>
>> local Y = function (le)
>> local a = function (f)
>> return le(function (...) return f(f)(...) end)
>> end
>> return a(a)
>> end
>>
>
> OUCH! My brain hurts!
>
> I can "feel" its beauty, but it's way over my functional head to understand!
>
> (It almost reminds me of the difficulties of understanding Duff's device :-)
>
I dunno, Duff's device is pretty simple by comparison.
/s/ Adam