[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Proposal] Canonical Module Names
- From: Andrew Gierth <andrew@...>
- Date: Thu, 11 Jun 2020 09:57:44 +0100
>>>>> "Soni" == Soni \"They/Them\" L <fakedme@gmail.com> writes:
Soni> if you have foo/init.lua you can require it as either "foo" or
Soni> "foo.init" and I think lua should detect these and error if you
Soni> don't use the shorter one.
Why not just put
assert(not string.match((...),"%.init$"), "wrong name")
near the top of your init.lua?
--
Andrew.