From: William Lovas <wlovas@stwing.upenn.edu>
To: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Do you like files as modules?
Date: Thu, 7 Oct 2004 15:45:15 -0400 [thread overview]
Message-ID: <20041007194515.GB7219@force.stwing.upenn.edu> (raw)
In-Reply-To: <1097118765.20680.565.camel@pelican.wigram>
On Thu, Oct 07, 2004 at 01:12:46PM +1000, skaller wrote:
> In both Ocaml and Python, the module name is also
> coupled to the filename.
>
> Which technique do you prefer? Why? What advantages
> and disadvantages does each have?
Some people say that it's a misstep to couple the programs semantics with
that of the operating system's filesystem. Personally, however, i like
being able to tell which file a function is defined in while i'm reading
someone else's source code. Conventions go a long way, but language
restrictions can't be ignored.
Unfortunately, module *types* are not treated the same way, so you're
forced to refer to things like Map.S and whatnot..
> How is the
> compiler architectural model coupled to program
> semantics, optimisation, separate compilation,
> and linkage, and should it be?
This is a tough question, i think, and I like the way the O'Caml folks have
answered it. Standard ML gets around this question by *not* answering it,
so every compiler implementation has its own idea of how to do things.
This makes it hard (impossible?) to write Standard ML programs that build
uniformly under any implementation of the language. (In some degenerate
sense, i suppose the same is true of O'Caml, though, since it has only one
implementation.)
cheers,
William
-------------------
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
prev parent reply other threads:[~2004-10-07 19:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-07 3:12 skaller
2004-10-07 5:38 ` Matt Gushee
2004-10-07 16:14 ` [Caml-list] " Stefan Monnier
2004-10-07 19:45 ` William Lovas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041007194515.GB7219@force.stwing.upenn.edu \
--to=wlovas@stwing.upenn.edu \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox