[Haskell-cafe] Proposal: Non-recursive let
es at ertes.de
Wed Jul 10 19:49:01 CEST 2013
"Ezra e. k. Cooper" <ezra at ezrakilty.net> wrote:
> As starter suggestions for the keyword or syntax, I submit:
> let new x = expr in body -- Not the old x!
It's not the old x in either case (recursive and non-recursive).
> let shadowing x = expr in body
> shadow x = expr in body
It's shadowing in either case.
> let x =! expr in body -- The explosive bang gives an imperative
(=!) is a valid operator name.
> Other suggestions would be welcome.
My suggestion: Don't add a non-recursive let. See my other post about
general recursion and totality checking.
Not to be or to be and (not to be or to be and (not to be or to be and
(not to be or to be and ... that is the list monad.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: not available
More information about the Haskell-Cafe