From: "Adam P. Jenkins" <ajenkins@javanet.com>
To: <caml-list@inria.fr>
Subject: RE: Local definitions
Date: Mon, 12 Oct 1998 13:20:11 -0400 [thread overview]
Message-ID: <000901bdf604$917ea4a0$1301a8c0@adam> (raw)
In-Reply-To: <19981012133903.58898@pauillac.inria.fr>
> -----Original Message-----
> From: Pierre.Weis@inria.fr [mailto:Pierre.Weis@inria.fr]On Behalf Of
> Xavier Leroy
> > Why CaML doesn't not allow the following style of local definitions:
> > [...]
> > or, the second variant: simply allow declaration of
> > types, exceptions, open statements and others in "let-in"
> > expressions with the same translation:
>
> I think types and exceptions are best handled at the level of
> modules, if necessary by creating a sub-structure to restrict their scope.
>
> I've never found a convincing example of a type or exception
> declaration local to an expression.
I agree, I can't think of a situation offhand where I'd NEED a local type.
One thing that I do miss from standard ML though is "let open Module in...".
Often I just want to open a module inside one function rather than at module
level.
Adam
next prev parent reply other threads:[~1998-10-12 17:31 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-21 16:30 polymorphic recursion Peter J Thiemann
1998-09-22 2:33 ` Jacques GARRIGUE
1998-09-22 9:22 ` Pierre Weis
1998-09-22 10:00 ` Simon Helsen
1998-09-22 15:06 ` Pierre Weis
1998-09-22 15:28 ` Simon Helsen
1998-09-22 16:33 ` Pierre Weis
1998-09-22 15:50 ` Pierre CREGUT - FT.BD/CNET/DTL/MSV
1998-09-22 17:14 ` Xavier Leroy
1998-09-28 9:51 ` Pierre Weis
1998-09-28 11:45 ` Peter Thiemann
1998-09-28 13:00 ` Pierre Weis
1998-10-05 14:27 ` Local definitions Anton Moscal
1998-10-12 11:39 ` Xavier Leroy
1998-10-12 17:20 ` Adam P. Jenkins [this message]
1998-10-14 13:47 ` Anton Moscal
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='000901bdf604$917ea4a0$1301a8c0@adam' \
--to=ajenkins@javanet.com \
--cc=caml-list@inria.fr \
/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