Version française
Home     About     Download     Resources     Contact us    
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.

:/

Chris

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners