Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Automatic generation of mli files
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris Hecker <checker@d...>
Subject: Re: [Caml-list] Automatic generation of mli files

>Not sure what advantage this would gain.  Step #1 is about as difficult as
>simply writting the .mli file directly.

Yeah, but not if things are changing a lot and you have big types and 
whatnot.  Cutting and pasting or doing the ocaml -i thing is a bit of a 
pain.  I could see it being a useful tool.  Basically anything that 
eliminates repetition is a positive.

>I don't have a problem with .mli files being seperate from .ml files for
>two reasons:
>1) .mli is your external interface-
>2) The compiler checks the signature of the .mli file

Don't forget "3) having a separate interface allows you to decouple 
implementations which is important for large scale software".  Oh wait.



To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: