News for hackers. Stuff that matters.
Re:“A closure is a poor man’s object; an object is a poor ma... by naasking on Monday May 01, 2017 @10:33AM (#14237711)
Encapsulation is not identity. Immutable objects are still perfectly encapsulated, but they don't have identity, which is what the OP was asking about.
Re:“A closure is a poor man’s object; an object is a poor ma... by lacampbell on Monday May 01, 2017 @05:45PM (#14241997)
I do come across the view a lot that immutable objects aren't really OO. It's something I really don't understand - state that changes over time doesn't seem like a key ingredient to me at all.