guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New syntax: (: MODULE-NAME VARIABLE-NAME)


From: Marius Vollmer
Subject: Re: New syntax: (: MODULE-NAME VARIABLE-NAME)
Date: Sun, 16 Nov 2003 21:36:50 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Neil Jerram <address@hidden> writes:

> I just noticed, though, that there are some other symbols (than :)
> available that don't have other meanings and which could be understood
> as relevant to a module lookup:

Yes, for some reason, I was fixated on ':' and didn't seriously think
about alternatives.

>   (@ MOD-NAME VAR-NAME)
> Seems quite good, with @ meaning `at' as in `in the specified module'.

Yes, I like this one best, too.  We could use '@' for exported
bindings and '@@' for internal ones.

>   (. MOD-NAME VAR-NAME)
> Intuitively very similar to : IMO, but without the keyword issues.
> However, (i) some people might want `.' for the mathematical dot
> (scalar) product; (ii) Guile currently seems confused about whether
> `.' is a symbol:

The dot '.' is a syntactic element when writing and reading improper
lists:

   guile> (cons 'a 'b)
   (a . b)

It can't really be used as a symbol.

> Of these, I like @ the most.

Yep.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]