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

Mockingbird

Name: Anonymous 2013-03-05 14:55

Some languages don't really care about types and allow to write something like (define (w x) (x x)) or even worse stuff.
Are there any statically-typed languages that allow to mock the mockingbird?

Name: Anonymous 2013-03-05 15:15

>>3
Thanks. But ocaml fails instantly: # ((fun x -> x x) id) 1;;
Error: This expression has type int but an expression was expected of type
         'a -> 'a as 'a

>>4
When did it became statically typed?

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