[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: general globals in use
- From: Josh Simmons <simmons.44@...>
- Date: Wed, 12 Dec 2012 18:40:50 +1100
On Wed, Dec 12, 2012 at 6:20 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> 2012/12/12 Thijs Schreijer <thijs@thijsschreijer.nl>:
>
>>
>> What I'm mostly interested in is the ones defined 'by convention'. I think
>> it makes sense to create a generic list on the wiki so they can be shared
>> (preventing users from creating different generics for the same purpose).
>> And if done properly some might become the standard for the Lua community,
>> which I think is a good thing.
>>
>
> I'll nominate three, apart of course from names in the
> standard libraries which should never ever be used for
> a global with a different meaning.
>
> lpeg = require "lpeg"
> lfs = require "lfs"
> append = table.insert
>
With 5.2 (and 5.1 too, really) pushing towards not registering globals
for libraries I'm not sure what the advantage of such a list would be
as it's going to be very heavily application dependent?