Skip to content

Instantly share code, notes, and snippets.

@lenary
Created May 23, 2016 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lenary/fa0d1b1165343cdbfdffaeeeaf60c871 to your computer and use it in GitHub Desktop.
Save lenary/fa0d1b1165343cdbfdffaeeeaf60c871 to your computer and use it in GitHub Desktop.
$ racket -iq -e "(require rosette)"
Welcome to Racket v6.4.
> (define (foo) identity)
> foo
#<procedure:foo>
> identity
#<procedure:identity>
> ((foo) 3)
free-identifier=?: contract violation
expected: identifier?
given: #<syntax::39 (foo)>
argument position: 1st
other arguments...:
#<syntax:/Users/ashe2/Library/Racket/6.4/pkgs/rosette/rosette/base/form/module.rkt:35:31 @define-generics>
context...:
/Users/ashe2/Library/Racket/6.4/pkgs/rosette/rosette/base/form/module.rkt:32:0
/opt/homebrew-cask/Caskroom/racket/6.4/Racket v6.4/collects/racket/private/misc.rkt:87:7
> (let ([this-works (foo)])
(this-works 3))
3
@lenary
Copy link
Author

lenary commented May 23, 2016

the -q argument to racket just stops it loading up my .racketrc, so everything remains pristine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment