From: skaller <skaller@users.sourceforge.net>
To: Lukasz Stafiniak <lukstafi@gmail.com>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Typing of the sequence operator (;)
Date: Sat, 12 Nov 2005 15:11:08 +1100 [thread overview]
Message-ID: <1131768669.10265.42.camel@rosella> (raw)
In-Reply-To: <4a708d20511111133q432e1e9co@mail.gmail.com>
On Fri, 2005-11-11 at 20:33 +0100, Lukasz Stafiniak wrote:
> Dear list,
>
> Why does the sequence operator (;) have type 'a -> 'b -> 'b and not
> unit -> 'a -> 'a? There is (ignore) for doing "these things"
> purposefully. The toplevel warning is very often mute. Together with
> labels, this is a source of bugs.
Yes, I actually think this should be made a hard error.
In transition, a compiler flag to let it pass.
The only place I can see where you might want to 'drop'
a returned value is when interfacing the external world.
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
prev parent reply other threads:[~2005-11-12 4:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-11 19:33 Lukasz Stafiniak
2005-11-11 20:12 ` [Caml-list] " Martin Jambon
2005-11-12 4:11 ` 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=1131768669.10265.42.camel@rosella \
--to=skaller@users.sourceforge.net \
--cc=caml-list@inria.fr \
--cc=lukstafi@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