Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Re: Managing module names
@ 1997-07-24  5:21 Frank Christoph
  1997-07-25 13:56 ` Fabrice Le Fessant
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Christoph @ 1997-07-24  5:21 UTC (permalink / raw)
  To: caml-list

> >>>>> "monniaux" == David Monniaux <monniaux@csl.sri.com> writes:
>     monniaux> Would it be possible to make up some scheme that would to
>     monniaux> things like: /graphics/blackwhite/main ->
>     monniaux> Graphics.Blackwhite.Main ?
> 
>     monniaux> Or, better: would it be interesting according to other users?
> 
> Absolutely! I think that such an arrangement would be even more useful
> than what exists presently.

In my experience, nested modules are not very useful in (O)CAML because you
cannot have a recursive definition cross a module boundary, and I find that
I quite often have mutual dependencies between sets of definitions whose
namespaces I would nevertheless like to separate.

I suspect that the reason package nesting in Java works so well is partly
due to the fact that recursion, etc. is hardly ever used.

On the other hand, SML seems to use module nesting quite freely, though,
and as far as I know it has the same restrictions on module dependencies...

-- FC





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-07-25 17:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-07-24  5:21 Managing module names Frank Christoph
1997-07-25 13:56 ` Fabrice Le Fessant
1997-07-25 16:39   ` ocamlc compiled in native code Fabrice Le Fessant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox