Vincent Foley-Bourgon ([info]gnuvince) wrote,
@ 2005-05-24 08:14:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Ruby's typing model vs Haskell, ML
I was skimming over A Gentle Introduction to Haskell, and the first chapter is all about the static typing in Haskell, how a function can have a a->b type signature, etc. This whole typing system is called the Hindley-Milner type system, and it's quite a complex beast, I remember from my O'Caml days.

And as I was reading this, I realized why Ruby was so fun; when it comes to typing, Ruby doesn't even use complex words, the rule is "If it walks like a duck and quacks like a duck, it's probably a duck." How simple and cute is that? Let's all hug Ruby!



(Post a new comment)

Hindley-Milner: A mixed blessing.
[info]hogwood
2005-05-24 01:36 pm UTC (link)
Advantage: Precise, expressive, and can be automatically inferred.
Disadvantage: The type is often longer than the implementation.

(Reply to this)

Ruby's typing model vs Haskell, ML
(Anonymous)
2005-05-24 02:18 pm UTC (link)
I've seen Haskell described as a 'typeful' programming language :-)

(Reply to this)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…