[Haskell-cafe] "Assignment" in do blocks?
oleg.grenrus at iki.fi
Wed Aug 26 12:55:15 UTC 2015
It’s not re-assigment, it’s rather feature request for non-rec-let (as let in Haskell is recursive)
and some pragma to say “yes, I do shadow name on purpose"
fix f = let x = f x in x -- let is recursive
niceTry f = noreclet x = f x in x -- Not in scope: ‘x’
> On 26 Aug 2015, at 15:34, Francesco Ariis <fa-ml at ariis.it> wrote:
> On Wed, Aug 26, 2015 at 05:55:45PM +0530, Anupam Jain wrote:
>> Hi all,
>> I'd like to propose an inbuilt "assignment" operator for use within
> Time to add your proposal here!
> Honestly, I feel it would break the way I read Haskell programs
> (i.e. no reassignment surprises).
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the Haskell-Cafe