[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Suggestion for 5.3: import() for creating a "slew" of locals
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: Tue, 19 Nov 2013 00:52:22 +0000
2013/11/17 Dirk Laurie <email@example.com>:
> What we should rather be looking for, is something with much
> wider application that happens to be a convenient way of also
> implementing this feature.
What about token filters? Detect token "import", assert next token is
a constant string, call require with the string, generate tokens for
locals as appropriate, for each member of the module in
package.loaded[the string] (and eventually the module itself).
My vote reads "+1 for token filters in 5.3", but thankfully this is
not a democracy.