Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6b2c467

Browse files
committed
Redefined `uniq' to provide real gensyms. Prefixes can now be provided too.
Also, gensyms now are of the format g### instead of gs###.
1 parent 1d9b8c6 commit 6b2c467

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

‎ac.scm‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -835,15 +835,7 @@
835835

836836
(xdef 'rep ar-rep)
837837

838-
; currently rather a joke: returns interned symbols
839-
840-
(define ar-gensym-count 0)
841-
842-
(define (ar-gensym)
843-
(set! ar-gensym-count (+ ar-gensym-count 1))
844-
(string->symbol (string-append "gs" (number->string ar-gensym-count))))
845-
846-
(xdef 'uniq ar-gensym)
838+
(xdef 'uniq gensym)
847839

848840
(xdef 'ccc call-with-current-continuation)
849841

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /