From: Richard Jones <rich@annexia.org>
To: skaller <skaller@ozemail.com.au>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] non-exported functions
Date: Wed, 29 Oct 2003 21:09:07 +0000 [thread overview]
Message-ID: <20031029210907.GA6753@redhat.com> (raw)
In-Reply-To: <1067451946.2160.7.camel@pelican>
On Thu, Oct 30, 2003 at 05:25:47AM +1100, skaller wrote:
> Aw, its kind of annoying. Two or three extra keywords might
> fix 95% of cases:
>
> let private x = ...
>
> Just don't put x in the interface
>
> type abstract x = ..
>
> put x in the interface as
>
> type x
This is a good idea (although in practice writing .mli files isn't too
much of a bind for me). Still, every little bit helps.
For classes I've started ALWAYS doing .mli files because that way you
can control private/protected/public methods very accurately. See the
other thread on this issue.
Rich.
--
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you.
'There is a joke about American engineers and French engineers. The
American team brings a prototype to the French team. The French team's
response is: "Well, it works fine in practice; but how will it hold up
in theory?"'
-------------------
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:[~2003-10-29 21:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-28 20:02 Dustin Sallings
2003-10-28 21:07 ` Richard Jones
2003-10-28 21:10 ` Maxence Guesdon
2003-10-29 0:11 ` Dustin Sallings
2003-10-29 6:50 ` Jean-Baptiste Rouquier
2003-10-29 7:52 ` Dustin Sallings
2003-10-29 10:00 ` David Brown
2003-10-29 18:31 ` skaller
2003-10-29 18:25 ` skaller
2003-10-29 21:09 ` Richard Jones [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=20031029210907.GA6753@redhat.com \
--to=rich@annexia.org \
--cc=caml-list@inria.fr \
--cc=skaller@ozemail.com.au \
/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;
as well as URLs for NNTP newsgroup(s).