[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: require() passing arguments to module?
- From: HyperHacker <hyperhacker@...>
- Date: Fri, 4 Nov 2011 20:10:22 -0600
I feel like this idea has been brought up before, but I don't recall
the consensus. Presently, require() accepts only one argument. Why not
change it to require(name, ...) and pass all additional args on to the
module? The module can then retrieve them from ... just as it would if
you did loadfile(name)(...).
--
Sent from my toaster.