[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pika-dev] Keyword implementation
From: |
Andreas Rottmann |
Subject: |
[Pika-dev] Keyword implementation |
Date: |
Sun, 06 Jun 2004 14:06:10 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Hi!
I just sat down to do a bit of work on keywords. I've now implemented
lexer support for R5RS-compatible keywords, and am now thinking about
how to best implement the data structure for them. Would a one-slot
vtable object, whose slot carries the symbol corresponding to the
keyword work? This way we can easily reuse parts of the symbols
implementation (e.g. interning), plus KEYWORD->SYMBOL and
SYMBOL->KEYWORD will be quite fast. OTOH, this would make keywords
more heavyweight and EQ? will not work for them, so this is probably
not a good idea. Thoughts?
Thanks,
Andy
--
Andreas Rottmann | address@hidden | address@hidden | address@hidden
http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
Make free software, not war!
- [Pika-dev] Keyword implementation,
Andreas Rottmann <=