News for hackers. Stuff that matters.
Re:Pissed off about functional programming (2005) by tel on Wednesday August 06, 2014 @10:34AM (#8142640)
Don't think about RAM. Instead, consider something like the mathematical expression

    x = 3 = y
thus `x` and `y` are both just new names for the same identical value `3`. Since both variables reference the same thing then we ought to be able to substitute x for y whenever we like.

Of course, in Perl `x` isn't really a variable but instead a name referencing a "slot" which can be mutated. That mutation breaks the reference and makes `x` hold more meaning than merely a "reference to 3". So then you cannot substitute it for `y` any longer.

I think his example code snippet is a little obtuse, though.

There are no comments on this comment yet.