/CHANGES/uniq-via-gensym

http://github.com/alimoeeny/arc · #! · 17 lines · 13 code · 4 blank · 0 comment · 0 complexity · e71609bed186a1cf02cf34e609903e9f MD5 · raw file

  1. Replaces arc's implementation of 'uniq with mzscheme's 'gensym. This has two
  2. effects. First and foremost, 'uniq now returns a "true" gensym - an uninterned
  3. symbol:
  4. arc> (= s (uniq))
  5. g1831
  6. arc> (is s 'g1831)
  7. nil ; in vanilla arc, this would be t
  8. Second, 'uniq takes an optional argument. If present, this argument must be a
  9. symbol or string, and will be used as the prefix for the gensym:
  10. arc> (uniq 'i-am-a-gensym)
  11. i-am-a-gensym1833
  12. This is useful for giving gensyms more informative names, which can be helpful
  13. when trying to read macro-generated code.