From: skaller <skaller@users.sourceforge.net>
To: Brian Hurt <bhurt@spnz.org>
Cc: Micha <micha-1@fantasymail.de>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] How to use Set Datatype
Date: 12 Dec 2004 11:05:42 +1100 [thread overview]
Message-ID: <1102809942.2611.647.camel@pelican.wigram> (raw)
In-Reply-To: <Pine.LNX.4.44.0412111505110.28854-100000@localhost.localdomain>
On Sun, 2004-12-12 at 08:12, Brian Hurt wrote:
> On Fri, 10 Dec 2004, Micha wrote:
> Another thing- longtime Ocaml programmers tend to inline their structure
> definitions.
Why? Because binding implicitly by name is basically bogus?
So you write
Set.Make(struct let compare=String.compare ...
because the name in the functor 'compare' only agrees
accidentally. The anonymous struct there seems general,
and at least exposes explicitly the bindings.
Of course the *implicit* binding in C++ templates (dependent
name lookup) is something some of us have learned to hate
intensely.. especially when the template calls T().compare ..
and our input class spelled it 'Compare' ..
--
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850,
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net
next prev parent reply other threads:[~2004-12-12 0:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-10 18:37 Jan Stamer
2004-12-10 19:44 ` [Caml-list] " Micha
2004-12-11 1:33 ` Jon Harrop
2004-12-11 21:12 ` Brian Hurt
2004-12-12 0:05 ` skaller [this message]
2004-12-12 2:46 ` William Lovas
2004-12-12 3:09 ` Brian Hurt
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=1102809942.2611.647.camel@pelican.wigram \
--to=skaller@users.sourceforge.net \
--cc=bhurt@spnz.org \
--cc=caml-list@yquem.inria.fr \
--cc=micha-1@fantasymail.de \
/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