[Haskell-cafe] Proposal: Non-recursive let

Ertugrul Söylemez 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
>   flavor.

(=!) 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.


Greets,
Ertugrul

-- 
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...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130710/682cbea6/attachment.pgp>


More information about the Haskell-Cafe mailing list