|
On Apr 8, 2014, at 12:18 AM, Christopher Berardi <cberardi32@gmail.com> wrote:
I have the 'from' part implemented with a small function for Steve's LuaMacro: A matching 'import' macro would be similarly easy, and along with one of the package.loaders larch ships, works almost invisibly (except for being an order of magnitude slower than plain require)... Disclaimer: larch is still half baked, but I use it to mitigate the otherwise huge block of 'local foo = module.foo' statements at the start of every file throughout my Specl project with some success, and in that case pre-expand all the macros in the installed files to avoid the slowdown and dependency on LuaMacro. Cheers, -- Gary V. Vaughan (gary AT vaughan DOT pe) |