How do I use the read-table to collapse symbol-table references?
From: Ray Dillinger (bear_at_sonic.net)
Date: 03/30/04
- Next message: Sebastian Stern: "Re: Matthew Danish must never say "stagger" again [was Re: "Staggering power of closures..."]"
- Previous message: Thomas Stegen: "Re: Python development tools"
- Next in thread: Pascal Costanza: "Re: How do I use the read-table to collapse symbol-table references?"
- Reply: Pascal Costanza: "Re: How do I use the read-table to collapse symbol-table references?"
- Reply: Barry Margolin: "Re: How do I use the read-table to collapse symbol-table references?"
- Reply: Kaz Kylheku: "Re: How do I use the read-table to collapse symbol-table references?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Mar 2004 17:25:37 GMT
Is there any way I can key on the '%' character to use the readtable
to transform
foo%bar
in source into
(get 'foo 'bar)
in data structure?
I'd also like to collapse
foo%bar%<datum>
in source into
(setf (get 'foo 'bar) <datum>)
in data structure.
Just looking for a way to make property-list references more concise.
Am I missing something about the readtable, or do I have to use a
prefix character before 'foo'? ie, as
%foo%bar
and
%foo%bar%<datum>
it looks like there's a straightforward way to do this.
Bear
- Next message: Sebastian Stern: "Re: Matthew Danish must never say "stagger" again [was Re: "Staggering power of closures..."]"
- Previous message: Thomas Stegen: "Re: Python development tools"
- Next in thread: Pascal Costanza: "Re: How do I use the read-table to collapse symbol-table references?"
- Reply: Pascal Costanza: "Re: How do I use the read-table to collapse symbol-table references?"
- Reply: Barry Margolin: "Re: How do I use the read-table to collapse symbol-table references?"
- Reply: Kaz Kylheku: "Re: How do I use the read-table to collapse symbol-table references?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|