lua-users home
lua-l archive

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

On Sunday, July 12, 2015, Peter Aronoff <> wrote:
Andrew Starks <> wrote:
> I think that this change was motivated in part by this thread:

Perhaps, but I have to admit I much prefer the answer Roberto gives to that problem
later in the thread:

We have not been faced with the need to satisfy someone else's
requirements, and for this freedom we are grateful.
    Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System

Yes. And the code that I used to create it was not especially... necessary. 

The problem solved was indeterminate behavior: depending upon when the GC was tripped, you had either a different closure or the same closure. That sort of possibility/bug is very frustrating and would require some awkward documentation, imho.

Perhaps your view is that one dark corner was traded for another? I don't have a strong opinion, other than that indeterminate behavior in Lua should be limited, as much as is possible (even if only to deal with edge cases like this).