[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Keyword syntax
From: |
Frederic Brunel |
Subject: |
Re: Keyword syntax |
Date: |
10 Sep 2000 23:57:26 -0100 |
User-agent: |
Gnus/5.0806 (Gnus v5.8.6) XEmacs/21.1 (Capitol Reef) |
Marius Vollmer <address@hidden> writes:
> Frederic Brunel <address@hidden> writes:
>
> > I think I'm coming a bit too late to debate on language syntax but
> > why keywords must be prefixed by a #?? It's a annoying in comparison
> > with the Common Lisp syntax... In class definition its ugly! :-(
>
> You can use
>
> (read-set! keywords 'prefix)
>
> and after that, you can just write `:keyword' instead of `#:keyword'.
>
> The alternate syntax using `#:' is there to be able to write keywords
> in otherwise R5RS conformant code (which might use `:' in normal
> symbols).
Ok, thank for the info.
I've read the R5RS paper but I don't remember any syntax definition
for keywords, maybe I missed it... I'll look at it!! :-)
It's a good idea to be able to disable this!!
--
;; --------------------------------------------------------------------------
(lambda (what-do-you-want-to-know?) (cdr (assoc what-do-you-want-to-know?
'((name . "Frederic BRUNEL") (www . "http://www.chez.com/brunel/"))
(job . "Software Developer") (uin . "2189048")
(email . "address@hidden") (phone . "0 556 123 750"))))
;; --------------------------------------------------------------------------