Version française
Home     About     Download     Resources     Contact us    
Browse thread
environment idiom
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Thomas Fischbacher <Thomas.Fischbacher@P...>
Subject: Re: [Caml-list] environment idiom

On Mon, 13 Dec 2004, Michael Walter wrote:

> No, besides referential transparency having a definite technical
> meaning, you can clearly see what you are getting by simply looking at
> the type (IO Int).

Hm, I think Klaus would strongly object to any statement of the form

> you can clearly see what you are getting by simply looking at
> the type (IO Int).

as every type will contain junk:

  (x::IO Int) where x = x >>= return

-- 
regards,               tf@cip.physik.uni-muenchen.de              (o_
 Thomas Fischbacher -  http://www.cip.physik.uni-muenchen.de/~tf  //\
(lambda (n) ((lambda (p q r) (p p q r)) (lambda (g x y)           V_/_
(if (= x 0) y (g g (- x 1) (* x y)))) n 1))                  (Debian GNU)