[Haskell-cafe] Small syntax question

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Jul 11 11:28:59 EDT 2006


Hello Maurício,

Tuesday, July 11, 2006, 5:34:58 PM, you wrote:

>    Hi,

>    I can do this:

> (let a=3 in a) + (let b=4 in b)

> but not this:

> (a where a=3) + (b where b=3)

>    Why?

'where' is a part of function definition syntax, while 'let .. in ..'
is just an expression like 'if ...' or '(...)'.


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list