in reply to Re: Module Design strawman - Exporter::VA
in thread Module Design strawman - Exporter::VA

There is a lot of parsing work figuring out how to export variables. Don't do that multiple times.

What do you mean?

Users often do not want your names for your functions and should be able to rename them in the import.

How often? I figured if you don't want that name, don't import it! Renaming on import would create apparently different interfaces to the same module, and make it harder to understand. I've never seen this discussed as a problem. Can you go into it more?

Certainly, I could do it with a array ref in the import list:  use MyModule v2.03 ('foo', [bar => 'renamed_bar'], 'baz');

Don't force people to inherit.

I suppose importing import from Exporter::VA would accomplish the same thing as inheriting from it. What is the disadvantage of inheriting from it?

—John