[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On uninterned symbols
From: |
Martin Grabmueller |
Subject: |
On uninterned symbols |
Date: |
Thu, 17 May 2001 07:40:04 +0200 |
Hello list,
I have implemented uninterned symbols (in my local sources), including
a fixed gensym, reading and printing. It was easier than I had
thought. For now, I simply chose #~SYMBOL as the print/read syntax
for uninterned symbols. Another syntax should be easy to implement
once we have decided which one to use.
Example session:
guile> (define g (gensym))
guile> g
#~g0
guile> (eq? g 'g0)
#f
guile> '#~g0
#~g0
guile> (eq? g '#~g0)
#t
guile> (define s (gensym "foo bar"))
guile> s
#~#{foo\ bar0}#
guile> (eq? s '#{foo bar0}#)
#f
guile> '#~#{foo bar0}#
#~#{foo\ bar0}#
guile> (eq? s '#~#{foo bar0}#)
#t
Do we want this? I think it's straightforward and should not make any
compatibility problems.
Regards,
'martin
- On uninterned symbols,
Martin Grabmueller <=
Re: On uninterned symbols, Marius Vollmer, 2001/05/24