From: "Loup Vaillant" <loup.vaillant@gmail.com>
To: "William D. Neumann" <wneumann@cs.unm.edu>
Cc: "Dario Teixeira" <darioteixeira@yahoo.com>,
"Robert Fischer" <robert@fischerventure.com>,
caml-list@yquem.inria.fr, "Stefano Zacchiroli" <zack@bononia.it>
Subject: Re: [Caml-list] Smells like duck-typing
Date: Thu, 18 Oct 2007 17:47:45 +0200 [thread overview]
Message-ID: <6f9f8f4a0710180847g23edadf5t1cdc7295e07cebf7@mail.gmail.com> (raw)
In-Reply-To: <20071018150419.M82068@cs.unm.edu>
2007/10/18, William D. Neumann <wneumann@cs.unm.edu>:
> On Thu, 18 Oct 2007 09:58:50 -0500, Robert Fischer wrote
>
> > If you think that a full story as a story with a summary/header,
> > and also a body, then you're conceptually into inheritance.
> >
> > From a formal standpoint, you're saying that all full stories
> > can be treated as headers/summaries/"blurbs", but not all
> > headers/summary/"blurbs" can be treated as full stories.
> > This is equivalent to saying that full stories are a subtype
> > of header/summaries/"blurbs".
>
> Well, I think the problem here is that the mental model is reversed with
> respect to the functional model. Mentally, blurbs are kinds of stories --
> they are distinguished by their lack of a body. Using the standard
> inheritance lingo, however, stories are a kind of blurb -- distinguished by
> the inclusion of a body. Really, it seems like we've got a six of one/half-
> dozen of the other situation...
It feels like the problem is the keyword "inherit". It suggest
C++/Java subtyping, while we just want code reuse. If having stories
inheriting from one another eventually result in less code, I would
consider that cleaner, no matter what "inherit" is supposed to mean.
Sometimes, a tool can be good at something it has not be designed for.
I think this might be the case, here.
Regards,
Loup Vaillant
next prev parent reply other threads:[~2007-10-18 15:47 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-17 13:35 Dario Teixeira
2007-10-17 14:13 ` [Caml-list] " Arnaud Spiwack
2007-10-17 14:47 ` Dario Teixeira
2007-10-17 14:25 ` Daniel Bünzli
2007-10-17 15:03 ` skaller
2007-10-17 15:13 ` Dario Teixeira
2007-10-17 15:25 ` Arnaud Spiwack
2007-10-17 15:32 ` Daniel Bünzli
2007-10-17 16:21 ` Chris King
2007-10-18 7:28 ` Stefano Zacchiroli
2007-10-18 8:33 ` [ANN] pa_oo and pa_polymap for 3.10 (Re: [Caml-list] Smells like duck-typing) Jacques Garrigue
2007-10-17 16:57 ` [Caml-list] Smells like duck-typing skaller
2007-10-17 16:52 ` skaller
2007-10-17 16:59 ` Robert Fischer
2007-10-17 14:33 ` Chris King
2007-10-17 14:59 ` Dario Teixeira
2007-10-17 15:24 ` Vincent Aravantinos
2007-10-17 15:26 ` Zheng Li
2007-10-18 16:13 ` Zheng Li
2007-10-18 16:37 ` [Caml-list] " William D. Neumann
2007-10-19 0:58 ` Jacques Garrigue
2007-10-17 19:59 ` [Caml-list] " Richard Jones
2007-10-17 20:24 ` Dario Teixeira
2007-10-18 7:37 ` Stefano Zacchiroli
2007-10-18 10:31 ` Dario Teixeira
2007-10-18 10:37 ` Stefano Zacchiroli
2007-10-18 13:28 ` Robert Fischer
2007-10-18 14:10 ` Dario Teixeira
2007-10-18 14:18 ` Brian Hurt
2007-10-18 14:29 ` Arnaud Spiwack
2007-10-18 14:45 ` Brian Hurt
2007-10-18 15:02 ` Arnaud Spiwack
2007-10-18 15:07 ` Robert Fischer
2007-10-18 15:14 ` Arnaud Spiwack
2007-10-18 16:39 ` skaller
2007-10-18 16:49 ` Arnaud Spiwack
2007-10-18 17:47 ` skaller
2007-10-18 19:55 ` Robert Fischer
2007-10-18 16:22 ` skaller
2007-10-18 16:30 ` Dario Teixeira
2007-10-18 14:58 ` Robert Fischer
2007-10-18 15:11 ` William D. Neumann
2007-10-18 15:47 ` Loup Vaillant [this message]
2007-10-18 16:08 ` William D. Neumann
2007-10-19 13:08 ` Ed Keith
2007-10-18 16:24 ` Dario Teixeira
2007-10-18 16:35 ` Vincent Aravantinos
2007-10-18 16:43 ` Brian Hurt
2007-10-18 17:04 ` William D. Neumann
2007-10-18 17:05 ` Dario Teixeira
2007-10-18 17:22 ` Brian Hurt
2007-10-18 17:58 ` Dario Teixeira
2007-10-18 15:42 ` Vincent Aravantinos
[not found] <47161E3B.3060704@tsc.uc3m.es>
2007-10-17 15:01 ` Dario Teixeira
2007-10-17 20:20 ` Alain Frisch
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=6f9f8f4a0710180847g23edadf5t1cdc7295e07cebf7@mail.gmail.com \
--to=loup.vaillant@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=darioteixeira@yahoo.com \
--cc=robert@fischerventure.com \
--cc=wneumann@cs.unm.edu \
--cc=zack@bononia.it \
/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