From: brogoff@speakeasy.net
To: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] What are Classes for in O'Caml?
Date: Fri, 8 Nov 2002 18:54:56 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.44.0211081844090.11956-100000@grace.speakeasy.net> (raw)
In-Reply-To: <200211081445.29249.mwohlwend@web.de>
On Fri, 8 Nov 2002, Michael Wohlwend wrote:
> I got to ocaml two weeks ago and the first thing I realized was that due the
> the functional programming style and the module system the need for
> oo-programming is much lower than with imperative style languages (at least
> for me).
I tend to use the class system to ameliorate the annoying limitations of
OCaml records. You know, no overloaded field labels, functions can't be
polymorphic over a set of labels, that kind of thing. I'd be thrilled if
I could have all of this stuff in a record system and get pattern matching
back.
> Has somone found a *best* solution (for his tasks) to combine them (classes
> und modules) or is it really just a matter of taste?
In addition to the O'Reilly book and Xavier's talk slides, take a gander at
Didier Remy's APPSEM notes, where he discusses this issue in detail, and
provides pointers to a symbolic algebra program which uses modules and
classes together.
-- Brian
-------------------
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:[~2002-11-09 2:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-08 13:24 Oleg
2002-11-08 13:45 ` Michael Wohlwend
2002-11-08 13:57 ` Luc Maranget
2002-11-09 12:44 ` Didier Remy
2002-11-08 19:50 ` Chris Hecker
2002-11-08 19:59 ` M E Leypold @ labnet
2002-11-08 20:41 ` Brian Hurt
2002-11-09 2:54 ` brogoff [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=Pine.LNX.4.44.0211081844090.11956-100000@grace.speakeasy.net \
--to=brogoff@speakeasy.net \
--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