Version française
Home     About     Download     Resources     Contact us    
Browse thread
Instruction selection in the OCaml compiler: Modules or classes?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Andreas Rossberg <AndreasRossberg@w...>
Subject: Re: [Caml-list] Instruction selection in the OCaml compiler: Modulesor classes?
Tom <tom.primozic@gmail.com> wrote:
>
> I think you should take a look at another currently active thread  -
> "Feature request : Tuples vs. records". One of the red lines there is the
> comparison of structural versus nominal typing - classes and objects
> belonging to the former, and modules and records to the latter.

Not exactly: ML modules employ fully structural typing and subtyping. That 
is their big strength, in contrast to comparable features in most other 
languages (particularly typical notions of class).

- Andreas