[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: dot-d
- From: Scott Morgan <blumf@...>
- Date: Mon, 15 May 2023 02:09:56 +0100
On 5/15/23 01:15, Soni "They/Them" L. wrote:
Hello,
We are wondering, if it would be possible to support foo.lua.d/bar.lua
for require("foo.bar").
See, Linux really really wants file-dir duality. You can tell by all the
.d/'s everywhere. Unfortunately POSIX forbids file-dir duality. So .d/'s
everywhere is the best we're gonna get. But it'd be nice to see them
more widely supported.
Wouldn't foo/init.lua + foo/bar.lua achieve the same result for you?
foo = require"foo"
bar = require"foo.bar"
Beyond that, just tweak the package.* items to suit your particular
requirements.
Scott
- References:
- dot-d, Soni "They/Them" L.