Is gensym used for anything except alpha-conversion in macros?
Gensym can also be used to produce globally (session wide) unique objects.
On Jul 10, 2011, at 01:40 AM, Kazimir Majorinc wrote:
Is gensym used for anything except alpha-conversion in macros?
pro mailing list pro@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinfo/pro
Dr. David McClain dbm@refined-audiometrics.com
On Sun, Jul 10, 2011 at 11:38 AM, Kazimir Majorinc kazimir@chem.pmf.hr wrote:
On 10.7.2011. 10:54, David McClain wrote:
Gensym can also be used to produce globally (session wide) unique objects.
Could you give me some example, or pointer to example?
http://codesearch.google.com/#search/&q=gensym%20lang:%5Elisp$&type=...
Yes.
On 10 Jul 2011, at 10:40, Kazimir Majorinc wrote:
Is gensym used for anything except alpha-conversion in macros?
pro mailing list pro@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinfo/pro
-- Pascal Costanza
On 10 Jul 2011, at 11:36, Kazimir Majorinc wrote:
On 10.7.2011. 11:06, Pascal Costanza wrote:
Yes.
Ok. For what?
According to http://lists.common-lisp.net/cgi-bin/mailman/listinfo/pro this mailing list is intended for people who use Common Lisp on a regular basis. I find it hard to imagine that somebody who indeed uses Common Lisp regularly wouldn't know.
Best, Pascal
-- Pascal Costanza The views expressed in this email are my own, and not those of my employer.
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.
kt
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?
Do you have some code to share?
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