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

Re: Reserved namespaces



Will be creating own namespaces allowed? It would be good, for
example, to create `my_plugin` namespace, instead of hash (typeset -gA
MyPlugin, e.g.), to store plugin's state. It would also serve as a
quite good poor man's nested vars.

On Sun, 12 Mar 2023 at 09:24, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> yes, nice. I would go for zle.CURSOR, it's looking worse than zle.cursor,
> however it follows upcase↔scalar convention.
>
>
> On Sat, 11 Mar 2023 at 19:47, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > On Sat, Mar 11, 2023 at 2:01 AM Sebastian Gniazdowski
> > <sgniazdowski@xxxxxxxxx> wrote:
> > >
> > > I'm not fully following, but is this about adding namespace.*
> > > prefixes? Like zle.CURSOR, for example?
> >
> > Yes, though it would be ".zle.CURSOR" or possibly just ".zle.cursor"
> > since we'd no longer have to worry as much about name collisions with
> > users' variables.
>
>
>
> --
> Best regards,
> Sebastian Gniazdowski



-- 
Best regards,
Sebastian Gniazdowski




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