Skip to main content
7 events
when toggle format what by license comment
Aug 17, 2012 at 13:20 vote accept Nastya Kholodova
Aug 13, 2012 at 16:02 comment added Scott Whitlock Also, at least in F#, you can certainly re-bind A to 6. That's called "hiding", or something similar. You're just hiding the old value called A with a new value called A.
Aug 12, 2012 at 8:06 comment added Oded I got stuck with Learn You a Haskell - some of the examples don't work in the current GHC.
Aug 12, 2012 at 3:12 comment added user7043 I don't doubt you know that, but some readers may not - and I wouldn't want yet another guy confusing state with mutability ;)
Aug 12, 2012 at 3:09 comment added user28988 @delnan Right but I'm being overly dramatic for emphasis ;)
Aug 12, 2012 at 3:09 comment added user7043 Well, you didn't make A exactly the same as 5 forever. You merely bound it to 5 for this specific context, and can't re-bind it. You can have plenty of other As elsewhere, and of course also bind something entirely else to A the next time you come by whereever you bound A to 5 (say, during recursion or an independent call).
Aug 12, 2012 at 3:05 history answered user28988 CC BY-SA 3.0