[Baypiggies] Python vs. OCaml

Adam Hupp adam at hupp.org
Thu Sep 10 18:12:54 CEST 2009

On Wed, Sep 9, 2009 at 12:30 PM, Daniel Wilkerson
<daniel.wilkerson at gmail.com> wrote:
> OCaml is not OO.  There is more to the world than OO as a previous
> poster mentioned, however OO is an essential idiom for programming in
> the large.  An example of how OCaml falls down is that if you have a
> foo field of an Object/Struct/Record/Whatever-they-call-it, then no
> other Object can have a foo field.  This allows for type inference.
> It also does not allow for polymorphism.

This isn't correct.  Records and objects are two separate concepts in
O'Caml.  A record has the limitation you mention (per-file) but
objects do not.

Adam Hupp | http://hupp.org/adam/

More information about the Baypiggies mailing list