Hi Francois,
On 10/30/2012 10:19 AM, Daniel Bünzli wrote:Thanks for the compliment.
Le mardi, 30 octobre 2012 à 01:43, Francois Berenger a écrit :
Also, maybe I only work on toy-size OCaml projects. So, I never
bothrered to create any .mli file.
I would like to know if I should bother about them.
For me, a program that lacks mli files means lack of design, abstraction and documentation and hence equates with rubbish.
To my defence, my main programming goal because of my employer
and colleagues is to deliver fast and correct (software) in order to investigate research ideas.
We don't deliver libraries or things targeting at a wide developer
audience (we don't do research in computer science, also).I don't have any problem reading my code.
For example at a certain point you (or others) will read your code.
It reads like an English text usually.Well, if I want to know this, I change the function parameters
>At that moment simple things like being able to distinguish between functions/types that are local to a module and those that are used by other part of the program is immensely useful.
and let the compiler tell me where it was used with the initial parameters.
I also quite know my swiss knives (egrep and co).OK, so you too are a top-down design practitioner
> And that's only one of the purpose of mli files.
In fact mli files are the first thing I write when I design programs.
and use .mli files to this end.
Thanks,
F.
--
Caml-list mailing list. Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs