- for generation of expressions processed by programs. For example, here:
http://kazimirmajorinc.blogspot.com/201 ... sions.html - for alpha-conversion, i.e. prevention of symbol clashes when calling macros. It is equivalent of use of (gensym) in other Lisp dialects in macro definition. For example, here
http://kazimirmajorinc.blogspot.com/200 ... exprs.html - for bulk definitions of functions or macros using same algorithm, for example, defining operators setq+, setq-, setq* ... such that (setq+ a b) <=> (setq a (+ a b)), (setq- a b) <=> (setq a (- a b)) ... For example, here
http://kazimirmajorinc.blogspot.com/200 ... ashed.html - for simulation of hash tables - in some other language, I'd use B["011101"], in Newlisp I just use symbol B011101. For example, here
http://kazimirmajorinc.blogspot.com/200 ... mulas.html
Why do you use sym?
-
- Posts: 388
- Joined: Thu May 08, 2008 1:24 am
- Location: Croatia
- Contact:
Why do you use sym?
I'm trying to make review of situations where sym is useful. I use it
-
- Posts: 394
- Joined: Wed Apr 26, 2006 3:37 am
- Location: Oregon, USA
- Contact:
Re: Why do you use sym?
I mostly use it for expression-building in my language and FOOP experiments, but even then, not very often. So, no, not really :-)Kazimir wrote:Do you have some other example of use of sym?
m i c h a e l