Re: [pro] Is gensym used for anything except alpha-conversion in macros?
10 Jul
2011
10 Jul
'11
6:29 p.m.
On Jul 10, 2011 2:09 AM, "David McClain" <dbm@refined-audiometrics.com> wrote:
Gensym can also be used to produce globally (session wide) unique objects.
But this is no different from other objects, such as a cons or array. The primary difference between an uninterned symbol and any other object that has settable "slots" is its behavior as a form under evaluation. Arrays and most other objects self evaluate; a cons has complex interpretation as a form; but a symbol evaluates to its its current special or lexical value binding. That's why gensyms are mostly use as hygienic names in macro expansions. There are other ways of doing whar a ge.sym does. Maybe later when I'm not typing on a tiny phone keyboad i'll show one.
4959
Age (days ago)
4959
Last active (days ago)
0 comments
1 participants
participants (1)
-
Steve Haflich