Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Naive question: how hard are namespaces for functions
- X-seq: zsh-workers 41121
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Naive question: how hard are namespaces for functions
- Date: Wed, 17 May 2017 15:43:37 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=NKPJ0rj8nrizykIHu1Jhrl3+SyfZ/x3yqYbPgZ3Cx9Q=; b=nzRvJAFpzfLmjeUuz1tM9cX29Y0Vszymy15Cx7l76G6l1Ueve1PK7j0m6EVsZLXVbT TyUBGX8dAIutCMJ5BcSqkV2UsziHcayXnm6EW2nRsOcxLF06c6TVc1zQha/OrsGjvWQ5 ieUHCdQ5g+hfByCWhgfsTeEItUNs+1nxu/RjpaqgN12OPNsE801yMsMz7bdT7KwFWkX1 BhM8jnOul0Yh7YIjmmOLnCQpRTIrANVwhdgtHbb26hTTlAg+lBxSlndBsCi28NdG+RYl 99WMvVoO84BhRpFmzNsAjFlewrbnoFb09wwaOz0AOFcGSdHa03lbV5B1m84N51tvYc7E HfHg==
- In-reply-to: <etPan.591c5c23.79e2a9e3.6b4c@MacMini.local>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.591965d2.3d1b58ba.6b4c@MacMini.local> <etPan.591c5c23.79e2a9e3.6b4c@MacMini.local>
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