caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Pixel <pixel@mandrakesoft.com>
To: Sven LUTHER <luther@dpt-info.u-strasbg.fr>
Cc: Vitaly Lugovsky <vsl@ontil.ihep.su>, caml-list@inria.fr
Subject: Re: [Caml-list] unused variables warning
Date: Sun, 29 Apr 2001 15:14:49 +0200 (CEST)	[thread overview]
Message-ID: <20010429131449.5A6D55725@leia.mandrakesoft.com> (raw)
In-Reply-To: Sven LUTHER's message of "Sun, 29 Apr 2001 15:06:25 +0200"

Sven LUTHER <luther@dpt-info.u-strasbg.fr> writes:

> > even if the <...> is unpure, caml could warn that x' is unused. It doesn't mean
> > in any way that computing x' is unnecessary.
> > 
> > and caml should not warn for
> > 
> > let _x' = <...> in
> 
> I guess you mean just :
> 
> let _ = <...> in 

well, no. In fact i thought "_x" and "_" were the same, discarded,
non-accessible variables. I'm wrong on this.

the manual recommend not to use _xxx variables, otherwise it could have been a
way to write things like:

let _no_warning_but_meaningful_name = <...> in

but it would be another rule to learn: ``no warning for unused variables
starting with _'' (which is just what Haskell is doing).

-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


  reply	other threads:[~2001-04-29 13:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-28  9:57 Pixel
2001-04-29  8:15 ` Vitaly Lugovsky
2001-04-29  9:58   ` Pixel
2001-04-29 13:06     ` Sven LUTHER
2001-04-29 13:14       ` Pixel [this message]
2001-04-29 10:14   ` Marcin 'Qrczak' Kowalczyk
2002-09-09 21:24 ` [Caml-list] " Pixel

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=20010429131449.5A6D55725@leia.mandrakesoft.com \
    --to=pixel@mandrakesoft.com \
    --cc=caml-list@inria.fr \
    --cc=luther@dpt-info.u-strasbg.fr \
    --cc=vsl@ontil.ihep.su \
    /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;
as well as URLs for NNTP newsgroup(s).