From: skaller <skaller@users.sourceforge.net>
To: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
Cc: alex@barettadeit.com, caml-list <caml-list@inria.fr>,
luca@barettadeit.com, ernesto@barettadeit.com,
dome@barettadeit.com, info@gerd-stolpmann.de
Subject: Re: [Caml-list] Dummy polymorphic constructors
Date: 17 Dec 2004 20:03:24 +1100 [thread overview]
Message-ID: <1103274204.15260.92.camel@pelican.wigram> (raw)
In-Reply-To: <20041217.101039.122623912.garrigue@math.nagoya-u.ac.jp>
On Fri, 2004-12-17 at 12:10, Jacques Garrigue wrote:
> > type empty = [ ]
> Maybe this should be a typing error rather than a syntactic one, to
> make the intention clearer.
> Empty sum types are not allowed, because, while they are not really
> dangerous, they may delay type errors.
How about: make it an error, unless -rectypes is specified.
In that case allow it. (Seems sensible to allow three cases:
(a) error (b) warning (c) no warning .. but I can't think
of how to provide that ..)
--
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
prev parent reply other threads:[~2004-12-17 9:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-16 19:22 Alex Baretta
2004-12-16 22:38 ` [Caml-list] " John Prevost
2004-12-17 7:42 ` Alex Baretta
2004-12-17 7:59 ` skaller
2004-12-17 1:10 ` Jacques Garrigue
2004-12-17 9:03 ` skaller [this message]
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=1103274204.15260.92.camel@pelican.wigram \
--to=skaller@users.sourceforge.net \
--cc=alex@barettadeit.com \
--cc=caml-list@inria.fr \
--cc=dome@barettadeit.com \
--cc=ernesto@barettadeit.com \
--cc=garrigue@math.nagoya-u.ac.jp \
--cc=info@gerd-stolpmann.de \
--cc=luca@barettadeit.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