by openfuture · 8y ago · 0 comments
If something like Symbol -> AST -> Closure is a type you accept for lambda, I guess vau's type would be the same except with two Symbols (one for the argument like lambda except it won't be evaluated before being passed to the closure, and one for the dynamic environment which you will need to evaluate the argument).
$ racket -I swindle
Welcome to Racket v6.12.
> (class-of 42)
#<primitive-class:exact-integer>
> (class-of $vau)
#<primitive-class:ultimate-abstraction>
I guess the paper wasn't lying.Welcome to Racket v6.7.
> (class-of 42)
#<primitive-class:exact-integer>
> (class-of $vau)
; $vau: undefined;
; cannot reference undefined identifier
; [,bt for context]
>
What did I do wrong? Or did the joke go over my head?