Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Julian Assange <proff@iq.org>
To: Nicolas barnier <barnier@recherche.enac.fr>
Cc: ocaml <caml-list@inria.fr>
Cc: proff@iq.org
Subject: Re: Warning messages and lonely variables
Date: 16 Jun 2000 23:55:53 +1000	[thread overview]
Message-ID: <wxn1klwx06.fsf@suburbia.net> (raw)
In-Reply-To: Nicolas barnier's message of "Wed, 14 Jun 2000 15:22:00 +0200"

Nicolas barnier <barnier@recherche.enac.fr> writes:

> Wouldn't it be judicious to warn the user whenever a variable appears in
> the left hand-side of a (let/pattern-) binding and not used anymore in
> the following code, like they do in Prolog (e.g. within the Eclipse
> compiler) ? This is one of the source of many (of my) stupid bugs
> (especially when modifying pieces of code) and surely a desirable
> feature of a correct program. It seems also not
> so intricate to check (from my naive user standpoint at least).

Yes, this has bitten me off several times already.

Similarly, code computed as unreachable in graph/flow analysis should
generate a warning.

Cheers,
Julian.



      reply	other threads:[~2000-06-16 18:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-14 13:22 Nicolas barnier
2000-06-16 13:55 ` Julian Assange [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=wxn1klwx06.fsf@suburbia.net \
    --to=proff@iq.org \
    --cc=barnier@recherche.enac.fr \
    --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