Re:Statically Typed Lisp
by jarcane on Wednesday November 12, 2014 @05:39AM
(#8594798)
So ... Typed Racket then? http://docs.racket-lang.org/ts-guide/
[ Parent
| on HN ]
Re:Statically Typed Lisp
by spdegabrielle on Wednesday November 12, 2014 @05:48AM
(#8594816)
An example
#lang typed/racket ;; Using higher-order occurrence typing (define-type SrN (U String Number)) (: tog ((Listof SrN) -> String)) (define (tog l) (apply string-append (filter string? l))) (tog (list 5 "hello " 1/2 "world" (sqrt -1)))
Re:Statically Typed Lisp
by dschiptsov on Wednesday November 12, 2014 @09:59AM
(#8595681)
Which is the same algebraic data types - a list of touples.