Re: Warnings in ocaml

From: Andrew Kay (
Date: Mon Feb 22 1999 - 14:45:44 MET

Date: Mon, 22 Feb 1999 13:45:44 GMT
From: (Andrew Kay)
Message-Id: <>
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 _ = 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 Tel:+44 1865 747711 FAX:+44 1865 747717

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