Question about scope of 'let' and 'where'

Graham Klyne gk@ninebynine.org
Tue, 18 Mar 2003 01:38:45 +0000


At 22:00 16/03/2003 -0800, Hal Daume III wrote:
>It is not.  Lets are expressions.  Wheres are part of declarations.  In a
>grammar sense, you have something like:
>
>funcdef ::= name = expr (where decls)?
>expr    ::= let decls in expr
>
>so the declarations inside a let are internal to the expression and can't
>go outside into the where clause.

I see now.  Thanks.

#g


-------------------
Graham Klyne
<GK@NineByNine.org>
PGP: 0FAA 69FF C083 000B A2E9  A131 01B9 1C7A DBCA CB5E