Re: let binding ()
Subject: Re: let binding ()
Newsgroups: gmane.comp.lang.ocaml.beginners
Date: 2008-11-20 22:57:13 GMT
> In both cases, the reason is that exhaustiveness checking is based
> only on the type of the expression, not on its value.
Is it correct to explain let-binding for this syntax
let <pattern> = <expression1> in <expression2>
as the type inference mechanism computes type T1 of <pattern> and type
T2 of <expression1> inferring the type of variables in <pattern> using
T2, and then T1 must be the same as T2?
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
RSS Feed