[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.2, setfenv and the C API
- From: Nevin Flanagan <Alestane@...>
- Date: Sun, 10 Jan 2010 19:04:29 -0500
On Jan 10, 2010, at 6:45 PM, Alexander Gladysh wrote:
> Well, why not just do require("debug") then? "Moral" considerations
> should be the same.
Firstly because it would not be accompanied by the other baggage associated with "debug", and secondly because it would recognize a voluntary decision by the person administering the Lua environment to make those functions available to code within that environment.
This decision seems to indicate a philosophy of encapsulation by default, while still allowing users and embeddors to choose to expose or bridge information into other environments to the degree they wish and no more.