lua-users home
lua-l archive

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


> On Behalf Of Hisham
> Sent: dinsdag 9 oktober 2012 22:43
> 
> On Tue, Oct 9, 2012 at 5:23 PM, Thijs Schreijer
> <thijs@thijsschreijer.nl> wrote:
> >> (For the argument of "let's just everyone use foo/init.lua and avoid
> >> foo.lua instead", the fact that ?.lua takes precedence means that it
> >> is a more robust option; besides, many projects consist of a single
> >> file.)
> >
> > My personal preference is to let ?/?.lua have precedence of ?.lua,
> simply to keep the higher level directory clean.
> 
> I like clean directories too, but that's not the default behavior of
> package.path, which doesn't even feature ?/?.lua as an option.

I meant ?/init.lua. Sorry for the confusion.