Re:Why OO Sucks
by ricky_clarkson on Tuesday February 10, 2009 @10:08AM
(#475222)
Lisp/Scheme are untyped.
[ Parent
| on HN ]
No, they're duck-typed. Types are attached to values, not variables, and for example trying to eval (+ 1 "hi") will throw a proper type exception.
You usually don't have to declare types but for example in Common Lisp you can optionally declare types for better performance in speed-critical parts of the code.
Re:Why OO Sucks
by ricky_clarkson on Wednesday February 11, 2009 @06:22AM
(#476868)
They're an implementation of the untyped lambda calculus. What you're thinking of are better named tags, not types.