From: james woodyatt <jhw@wetware.com>
To: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
Cc: oleg_inconnu@myrealbox.com, caml-list@inria.fr
Subject: Re: [Caml-list] ocaml-classes-3.05
Date: Mon, 5 Aug 2002 17:49:21 -0700 [thread overview]
Message-ID: <5858A222-A8D6-11D6-A84E-000502DB38F5@wetware.com> (raw)
In-Reply-To: <20020806091344X.garrigue@kurims.kyoto-u.ac.jp>
On Monday, Aug 5, 2002, at 17:13 US/Pacific, Jacques Garrigue wrote:
> From: Oleg <oleg_inconnu@myrealbox.com>
>>
>> Jacques, what are the advantages of using the OO wrappers over the
>> corresponding modules from the standard distribution?
>
> None.
> You don't get more features.
Actually... not true. You get the ability to override the methods by
inheritance. In exchange for this feature, you pay a not insignificant
cost in initialization time and program codespace. Whether this trade
is a good one is open to interpretation.
> But it felt strange at the beginning to have an OO languages with no
> basic classes. So I quickly wrote those, and apparently some people
> are using them. They may like the oo syntax, or the customizability.
It felt strange to me at first too. The feeling eventually passed when
I fully understood what is really easier to do with classes and class
types than with modules, signatures and functors.
My advice: Use the most basic syntax the language provides to do the
basics. Use objects and methods only when functions (including
higher-order functions) are insufficient.
--james
-------------------
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-08-06 0:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-05 6:45 Jacques Garrigue
2002-08-05 18:18 ` Oleg
2002-08-05 19:27 ` John Prevost
2002-08-06 0:13 ` Jacques Garrigue
2002-08-06 0:49 ` james woodyatt [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=5858A222-A8D6-11D6-A84E-000502DB38F5@wetware.com \
--to=jhw@wetware.com \
--cc=caml-list@inria.fr \
--cc=garrigue@kurims.kyoto-u.ac.jp \
--cc=oleg_inconnu@myrealbox.com \
/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).