From: Alain Frisch <alain@frisch.fr>
To: Dario Teixeira <darioteixeira@yahoo.com>,
OCaml mailing-list <caml-list@inria.fr>
Subject: Re: [Caml-list] The rec/nonrec debate
Date: Tue, 21 May 2013 10:25:08 +0200 [thread overview]
Message-ID: <519B2F64.6070805@frisch.fr> (raw)
In-Reply-To: <1369060290.43256.YahooMailNeo@web120405.mail.ne1.yahoo.com>
On 05/20/2013 04:31 PM, Dario Teixeira wrote:
> The unrecursiveness of type declarations is cause for some chagrin, as a
> recent ticket on Mantis demonstrates [1].
As I explain on this Mantis ticket, I don't believe that the implicit
recursiveness of type declarations is the real cause of the problem.
The same problem would still exist if the type declarations were
non-recursive by default or if we add a "nonrec" modifier. Consider:
type t = X | Y
module M = struct
type t = A | B
type s = {
foo: (* I cannot refer to the outer "t" *);
bar: t
}
end
What's missing, in my opinion, is not really a way to control
recursiveness of type declarations, but rather to refer to components
from outer scopes.
Alain
next prev parent reply other threads:[~2013-05-21 8:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-20 14:31 Dario Teixeira
2013-05-20 14:38 ` David House
2013-05-20 15:18 ` Julien Blond
2013-05-20 15:19 ` David House
2013-05-20 16:18 ` Dario Teixeira
2013-05-21 14:22 ` Richard W.M. Jones
2013-05-21 15:14 ` Dario Teixeira
2013-05-20 15:17 ` Török Edwin
2013-05-20 16:05 ` Dario Teixeira
2013-05-21 4:07 ` [Caml-list] " Hongbo Zhang
2013-05-21 8:25 ` Alain Frisch [this message]
2013-05-21 11:15 ` [Caml-list] " Boris Yakobowski
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=519B2F64.6070805@frisch.fr \
--to=alain@frisch.fr \
--cc=caml-list@inria.fr \
--cc=darioteixeira@yahoo.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