alastair> There's a second problem with "pseudoconstant" that no-one's mentioned
alastair> yet - it breaks the Haskell type system (when used in conjunction with
alastair> mutable variables).
You tacitly imply that pseudoconstants are let-bound. The problem
disappears if you simply treat them as lambda-bound variables. That
is, you treat
> pseudoconstant x m
like prepending
> m >>= \x -> ...
to main and everything works fine.
-Peter
- Re: Making argv a constant Sigbjorn Finne
- Re: Making argv a constant Frank Christoph
- Re: Making argv a constant Andrew Gordon
- Re: Making argv a constant Sverker Nilsson
- Re: Making argv a constant Philip Wadler/bin/ksh
- Re: Making argv a constant Sigbjorn Finne
- Re: Making argv a constant Johannes Waldmann
- Re: Making argv a constant Fergus Henderson
- Re: Making argv a constant reid-alastair
- Re: Making argv a constant Claus Reinke
- Re: Making argv a constant Peter Thiemann
- Re: Making argv a constant Simon L Peyton Jones
- Re: Making argv a constant Frank Christoph
- Re: Making argv a constant Chris Dornan
