by thesz · 15y ago · 0 comments
This break referential transparency. Two runs of "new Integer(2);" will be different.
So you cannot have proper functional language with OO. Even if all your objects are immutable.
If I remember correctly in Dylan you have two operators = and == the first checks for equality the secend for identety.
>Yes you can. Check out my language Babel-17
I failed to see how purely functional structured programming address the need of identity for objects.
Could you elaborate a little more?
http://en.wikipedia.org/wiki/Identity_%28object-oriented_pro...
"identity is the basis for polymorphism in object-oriented programming."
In a purely functional object-oriented programming you don't need identity. But then that practice is almost indistinguishable from usual pure functional programming we have for at least 20 years with Haskell.