3 ms·
Hell, you don't even need to use typed/racket to implement static types. You can just use contracts with plain old Racket to achieve true lispyness...because co
by brudgers 13y ago
Hell, you don't even need to use typed/racket to implement static types. You can just use contracts with plain old Racket to achieve true lispyness...because contracts let you impose static type-checking selectively within your code and for staticly-typed code to symbiose with dynamically-typed code.
Racket Guide on contracts: http://docs.racket-lang.org/guide/contracts.html http://docs.racket-lang.org/guide/contracts.html
Racket Reference on contracts: http://docs.racket-lang.org/reference/contracts.html http://docs.racket-lang.org/reference/contracts.html
There's even this groovy academic paper: http://www.eecs.northwestern.edu/~robby/pubs/papers/oopsla2012-stff.pdf http://www.eecs.northwestern.edu/~robby/pubs/papers/oopsla20...
It almost goes without saying that contracts are the mechanism by which typed/racket is statically typed.