Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

SBCL or Racket?

Name: Anonymous 2012-03-06 12:23

Name: Anonymous 2012-12-21 13:44

You cannot do this in typed racket:


#lang typed/racket
Structure 1
(struct: (α) Seq
([elem : α]
[recur : (Seq (Pair A A))]))


You have to conveniently write it like this:


#lang typed/racket
Structure 2
(struct: (α) Elem ([elem : α]))
(struct: (α) Pare
([pair : (Pair (EP α) (EP α))]))
(define-type (EP α) (U (Elem α) (Pare α)))
(struct: (α) Seq
([elem : (EP α)]
[recur : (Seq α)]))



This is what I like about typed racket.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List