Andreas Abel
<[email protected]> writes:

> Proposal: add a non-recursive let to the Haskell language.  In
>
>   let' p = e in e'
>   do { ... let' p = e ... }
>
> the variables of pattern p are then *not* in scope in e.
>
> Reasons for adding a non-recursive let:
>
> 1. recursive-let is the source for many non-termination bugs.

-1 from me. I don’t see that having non-recursive let available
will have much impact on the bugs. It just changes forgetting to
use different variable names because of recursion (which is
currently uniform throughout the language) to forgetting to use
non recursive let instead of let.
-- 
Jón Fairbairn                                 [email protected]


_______________________________________________
Haskell-prime mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-prime

Reply via email to