[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

N.K.Anil



Date: Fri, 29 May 1992 16:46:36 +0200
From: " (N K Anil)" <anil@kailash.cse.iitb.ernet.in (N K Anil)>
Sender: haskell-request@dcs.glasgow.ac.uk
To: haskell@CS.YALE.edu
Subject: N.K.Anil


paul Hudak in his 'gentle introduction to haskell" says that a where clause
is allowed only at the top level of a set of equations or case expression.

So you cannot declare
	let 
		f x = z / y where z = x + y
	in ....

I do not know the reason why this restriction has been put.
I see the above definition perfectly alright.
Can anybody send me the reason for the above restriction.

-- anil@cse.iitb.ernet.in