Date: Mon, 22 Feb 1999 10:33:44 -0800 (PST)
From: Ching-Tsun Chou <firstname.lastname@example.org>
Subject: Re: Warnings in ocaml
I copied from SML and defined a procedure "ignore":
let ignore k =
let _ = k in ()
so now I would write:
ignore (f x y); ...
How about instead of writing:
(f x y) ; (g z w) ; ...
let _ = (f x y) in
let _ = (g z w) in
In fact, I found it scarcely necessary to use ";" these days even when
I was doing imperative programming.
- Ching Tsun
Ching-Tsun Chou E-mail: email@example.com
Intel Corporation Tel: (408) 765-5468
3600 Juliette Lane, SC12-401 Fax: (408) 653-7933
Santa Clara, CA 95052, U.S.A. Sec: (408) 653-8849
This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:20 MET