Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Naive question: how hard are namespaces for functions



On May 17,  4:20pm, Sebastian Gniazdowski wrote:
}
} Maybe namespaces are easy?

This depends entirely on what you mean by "namespaces".

Voluntarily naming functions with an identifiable prefix string is easy.

Calling those functions by a name other than the full name with the
prefix string is probably of middling difficulty, but would require
some sort of collision resolution if the same suffix appeared with two
or more prefixes.

Dividing $functions (or any hash parameter value) up into named sections
that the shell somehow understands natively, is very difficult.

I'm not following what this would have to do with how long it takes to
load function definitions.



Messages sorted by: Reverse Date, Date, Thread, Author