From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: "Till Varoquaux" <till.varoquaux@gmail.com>
Cc: "Richard Jones" <rich@annexia.org>, caml-list@inria.fr
Subject: Re: [Caml-list] Feature request : Tuples vs. records
Date: Fri, 23 Feb 2007 15:14:50 +0100 [thread overview]
Message-ID: <cd67f63a0702230614pd73b5a7q62d5780277c22417@mail.gmail.com> (raw)
In-Reply-To: <9d3ec8300702230543p37471dcco28c7dba77564bf1a@mail.gmail.com>
On 2/23/07, Till Varoquaux <till.varoquaux@gmail.com> wrote:
> I also agree:
> IMHO , it woud feel natural to have
> open .. in (* <-- there's already a camlp4 extension that brings this*)
> type ... in
> etc...
> it would be coherent with the let syntax. However I don't know the
> deep implications of such a change and happen to be very prompt
> criticizing. I'm sure there is a profound reason for the language not
> be like this.
You already have it in some sense:
let module M = struct
type t = ...
end in
... M.t ...
>
> Till
>
> On 2/23/07, Richard Jones <rich@annexia.org> wrote:
> > On Fri, Feb 23, 2007 at 10:39:45AM +0900, Jacques Garrigue wrote:
> > > On the other hand structural typing avoids extra definitions, and
> > > allows more code sharing and polymorphism. One cannot imagine ML
> > > without structural tuples. In ocaml, you have also objects that can
> > > mimic records, and polymorphic variants for sum types.
> >
> > The penalty of having the extra definitions wouldn't be so bad if
> > 'type t = ...' could appear inside let statements (ie. not just at the
> > top level). At the moment, type definitions are often a long way away
> > from where they are used.
> >
> > Rich.
> >
> > --
> > Richard Jones
> > Red Hat UK Limited
> >
> > _______________________________________________
> > Caml-list mailing list. Subscription management:
> > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> > Archives: http://caml.inria.fr
> > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> > Bug reports: http://caml.inria.fr/bin/caml-bugs
> >
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
--
Nicolas Pouillard
next prev parent reply other threads:[~2007-02-23 14:14 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-22 15:34 Frederic GAVA
2007-02-22 16:16 ` David Teller
2007-02-23 1:39 ` Jacques Garrigue
2007-02-23 13:34 ` Richard Jones
2007-02-23 13:43 ` Till Varoquaux
2007-02-23 14:14 ` Nicolas Pouillard [this message]
2007-02-23 1:45 ` Jon Harrop
2007-02-23 16:32 ` Lukasz Stafiniak
2007-02-24 13:43 ` Lukasz Stafiniak
2007-02-24 15:50 ` Brian Hurt
2007-02-24 18:14 ` skaller
-- strict thread matches above, loose matches on Subject: below --
2007-02-22 10:25 David Teller
2007-02-22 10:42 ` [Caml-list] " Andrej Bauer
2007-02-22 12:41 ` skaller
2007-02-22 13:55 ` David Teller
2007-02-22 15:44 ` Jon Harrop
2007-02-22 19:45 ` Tom
2007-02-22 23:26 ` skaller
2007-02-22 15:28 ` Andreas Rossberg
2007-02-22 15:57 ` Till Varoquaux
[not found] ` <45DDC424.2020804@ens-lyon.org>
2007-02-22 16:57 ` Till Varoquaux
2007-02-22 17:19 ` brogoff
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=cd67f63a0702230614pd73b5a7q62d5780277c22417@mail.gmail.com \
--to=nicolas.pouillard@gmail.com \
--cc=caml-list@inria.fr \
--cc=rich@annexia.org \
--cc=till.varoquaux@gmail.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