Re: Warnings in ocaml

From: Andrew Kay (akay@sharp.co.uk)
Date: Mon Feb 22 1999 - 14:45:44 MET


Date: Mon, 22 Feb 1999 13:45:44 GMT
From: akay@sharp.co.uk (Andrew Kay)
Message-Id: <199902221345.NAA15505@byrd.sharp.co.uk>
To: caml-list@inria.fr
Subject: Re: Warnings in ocaml

Frank A. Christoph wrote:
> I copied from SML and defined a procedure "ignore":
> so now I would write:
> ignore (f x y); ...

Yes, we did this too. This certainly gets rid of the warning about
the type to the left of ";", but it doesn't address the problem of
accidentally using a partially applied function.

eg let _ = List.map f
        in print_endline "done map..."

Are there any plans to provide a warning for this in ocaml?

Andrew Kay
Sharp Labs Europe Ltd, Oxford Science Park, Oxford, UK, OX4 4GA
Andrew.Kay@sharp.co.uk Tel:+44 1865 747711 FAX:+44 1865 747717



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:20 MET