[pro] Is gensym used for anything except alpha-conversion in macros?

Ken Tilton kentilton at gmail.com
Mon Jul 11 14:02:33 UTC 2011


On 7/11/2011 9:53 AM, Kazimir Majorinc wrote:
> On 11.7.2011. 15:04, Ken Tilton wrote:
>
>> On 7/10/2011 4:40 AM, Kazimir Majorinc wrote:
>>> Is gensym used for anything except alpha-conversion in macros?
>> I like to link them using properties 'parent and 'kids to form a
>> lightweight tree, then hang other properties of each gensym/node to form
>> a dag/database to support interesting algorithms.
>
> That's exactly kind of use I'm interested in. What's advantage over 
> using lists for trees?

With a property list each value gets a name.

What advantage do gensyms/property-lists have over structs? 
Metaprogramming: the data can define new "slots" when the object is a 
property list.

>
> Do you have some code to share?
>

Sorry, proprietary stuff over here. But I think I have already described 
how the whole thing works.

kt




More information about the pro mailing list