zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <borsenkow.msk@sni.de>
To: <B.Stephens@isode.com>,
	"ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: RE: Reading completion manual
Date: Tue, 2 Mar 1999 20:20:12 +0300	[thread overview]
Message-ID: <000201be64d0$ee20e160$21c9ca95@mowp.siemens.ru> (raw)
In-Reply-To: <vbzp5vu8bv.fsf@snake.isode.com>


>
> >  - use new option character (do we have one free?)
> >  - implement long options
> >  - (really wild one) implement name spaces.
> >
> > I'd like the last one, but it is probably impossible. A command name
> > may have any character, so there is simply no char that can be
> > (safely) used as delimiter. So, long options is probably the only
> > viable solution. And quite useful in other places as well.
>
> I thought namespaces had been discussed before?  What's the objection
> to allowing "." in variable names, and regarding it as a component
> delimiter in function/command names?

I spoke about functions not variables. Variables names are limited to
alphanumeric, so you can safely use ``.'' as delimiter. Function names can
be arbitrary (am I wrong?)

 Hmm, this isn't a good idea; I
> quite often use things like "cp $i $i.bak" and stuff.

If I remember correctly, it should start with a dot. And of course, you can
use braces as usual

cp ${.myvars.i} ${.myvars.i}.bak

But you are right, it can break some scripts

>
> (So if you have a function foo.WRITE, then that gets called when you
> try to write to foo.  Something like that, anyway.  A better interface
> might be to copy the Perl tie ideas---allowing special associative
> arrays and things as Bart suggested; you wouldn't need name spaces for
> this, of course.)
>

May be, simply add ZSH emulation module to Perl :-))) But yes, what you've
just described is my long cherished idea.

/andrej


  reply	other threads:[~1999-03-02 17:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-02 16:52 Andrej Borsenkow
1999-03-02 17:09 ` Bruce Stephens
1999-03-02 17:20   ` Andrej Borsenkow [this message]
1999-03-02 17:29     ` Bruce Stephens
1999-03-03  9:29 Sven Wischnowsky
1999-03-04  5:50 ` Bart Schaefer
1999-03-03 13:34 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000201be64d0$ee20e160$21c9ca95@mowp.siemens.ru' \
    --to=borsenkow.msk@sni.de \
    --cc=B.Stephens@isode.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).