Re: [racket] Dynamic define-predicate

2010-07-08 Thread Neil Toronto
Sam Tobin-Hochstadt wrote: On Tue, Jul 6, 2010 at 7:00 PM, Neil Toronto wrote: #lang typed/racket (define-type Env (HashTable Symbol Any)) (define: empty-env : Env (make-immutable-hash empty)) ; type of environment idiom/monad computations: (define-type (I a) (Env -> a)) (: id (All (a) (Symb

Re: [racket] Dynamic define-predicate

2010-07-06 Thread Sam Tobin-Hochstadt
On Tue, Jul 6, 2010 at 7:00 PM, Neil Toronto wrote: > I'd like to use Typed Racket to create an interpreter for a typed lambda > calculus, which *inherits* Typed Racket's type system. (In other words, I'm > lazy and I don't want to make my own type system. But who does? Except maybe > Sam? :p) I w

[racket] Dynamic define-predicate

2010-07-06 Thread Neil Toronto
I'd like to use Typed Racket to create an interpreter for a typed lambda calculus, which *inherits* Typed Racket's type system. (In other words, I'm lazy and I don't want to make my own type system. But who does? Except maybe Sam? :p) I was counting on occurrence typing to allow me to do it whi